commit | d753b41bc23a2acf295f3dc0cdee32f034fb7a46 | [log] [tgz] |
---|---|---|
author | Mike Stump <mrs@apple.com> | Thu Apr 02 01:14:26 2009 +0000 |
committer | Mike Stump <mrs@apple.com> | Thu Apr 02 01:14:26 2009 +0000 |
tree | eb61a757381d2d63382013bedd6d426ef0a6a5ff | |
parent | 133d2554efb2245f1757becfd369cb298495f0bc [diff] [blame] |
Oops, almost forgot the testcases. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68270 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/trapv.c b/test/CodeGen/trapv.c new file mode 100644 index 0000000..c96488b --- /dev/null +++ b/test/CodeGen/trapv.c
@@ -0,0 +1,10 @@ +// RUN: clang-cc -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; +}