summaryrefslogtreecommitdiff
path: root/test/CodeGen/trapv.c
blob: d10d6176bf9438582639a8916eda88df8dd49cf8 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang_cc1 -ftrapv %s -emit-llvm -o %t
// RUN: grep "__overflow_handler" %t | count 2

unsigned int ui, uj, uk;
int i, j, k;

void foo() {
  ui = uj + uk;
  i = j + k;
}