diff options
author | Mike Stump <mrs@apple.com> | 2009-04-02 01:14:26 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-04-02 01:14:26 +0000 |
commit | 947b3e2c51393a2ac39b63f5a5d9e4ba43f05d6a (patch) | |
tree | eb61a757381d2d63382013bedd6d426ef0a6a5ff /test/CodeGen/trapv.c | |
parent | 558cb56caf8906e0adbe643e3febbef0b7af1b9f (diff) |
Oops, almost forgot the testcases.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68270 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/trapv.c')
-rw-r--r-- | test/CodeGen/trapv.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/trapv.c b/test/CodeGen/trapv.c new file mode 100644 index 0000000000..c96488b8e9 --- /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; +} |