diff options
| author | Alexey Samsonov <samsonov@google.com> | 2013-11-14 12:30:09 +0000 |
|---|---|---|
| committer | Alexey Samsonov <samsonov@google.com> | 2013-11-14 12:30:09 +0000 |
| commit | 164841036d94ab2a7770cefba0995922f1e462bf (patch) | |
| tree | 7f5f5ba1dea75eb3723f01f3a613c7a90383d798 /compiler-rt/lib/ubsan/lit_tests/Integer/uincdec-overflow.cpp | |
| parent | 585813e33dda3dc396e12a01ffc3e47fc39895e9 (diff) | |
| download | bcm5719-llvm-164841036d94ab2a7770cefba0995922f1e462bf.tar.gz bcm5719-llvm-164841036d94ab2a7770cefba0995922f1e462bf.zip | |
[UBSan] Make sure ASan and UBSan interact properly by running each test from UBSan test suite with and without ASan
llvm-svn: 194698
Diffstat (limited to 'compiler-rt/lib/ubsan/lit_tests/Integer/uincdec-overflow.cpp')
| -rw-r--r-- | compiler-rt/lib/ubsan/lit_tests/Integer/uincdec-overflow.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/compiler-rt/lib/ubsan/lit_tests/Integer/uincdec-overflow.cpp b/compiler-rt/lib/ubsan/lit_tests/Integer/uincdec-overflow.cpp deleted file mode 100644 index a14bd6a776f..00000000000 --- a/compiler-rt/lib/ubsan/lit_tests/Integer/uincdec-overflow.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// RUN: %clangxx -DOP=n++ -fsanitize=unsigned-integer-overflow %s -o %t && %t 2>&1 | FileCheck --check-prefix=CHECK-INC %s -// RUN: %clangxx -DOP=++n -fsanitize=unsigned-integer-overflow %s -o %t && %t 2>&1 | FileCheck --check-prefix=CHECK-INC %s -// RUN: %clangxx -DOP=m-- -fsanitize=unsigned-integer-overflow %s -o %t && %t 2>&1 | FileCheck --check-prefix=CHECK-DEC %s -// RUN: %clangxx -DOP=--m -fsanitize=unsigned-integer-overflow %s -o %t && %t 2>&1 | FileCheck --check-prefix=CHECK-DEC %s - -#include <stdint.h> - -int main() { - unsigned n = 0xfffffffd; - n++; - n++; - unsigned m = 0; - // CHECK-INC: uincdec-overflow.cpp:15:3: runtime error: unsigned integer overflow: 4294967295 + 1 cannot be represented in type 'unsigned int' - // CHECK-DEC: uincdec-overflow.cpp:15:3: runtime error: unsigned integer overflow: 0 - 1 cannot be represented in type 'unsigned int' - OP; -} |

