diff options
| author | Roman Lebedev <lebedev.ri@gmail.com> | 2018-07-30 21:11:34 +0000 |
|---|---|---|
| committer | Roman Lebedev <lebedev.ri@gmail.com> | 2018-07-30 21:11:34 +0000 |
| commit | f07c5a0e9c4bde60c8aaf359d1945a9a44b95d80 (patch) | |
| tree | 1b4ea576a7820937bbf321027df2f4decb227664 /compiler-rt/test/ubsan/TestCases/ImplicitConversion/integer-truncation-summary.cpp | |
| parent | 3a5d356bd09cce183b6e508d83f2f8b71cb95d1e (diff) | |
| download | bcm5719-llvm-f07c5a0e9c4bde60c8aaf359d1945a9a44b95d80.tar.gz bcm5719-llvm-f07c5a0e9c4bde60c8aaf359d1945a9a44b95d80.zip | |
[NFC] Rename test/ubsan/TestCases/{ImplicitCast => ImplicitConversion}
Just to be consistent with the rest.
I should have done that in the commit itself, but the filepaths
is one thing i forgot to verify :S
llvm-svn: 338307
Diffstat (limited to 'compiler-rt/test/ubsan/TestCases/ImplicitConversion/integer-truncation-summary.cpp')
| -rw-r--r-- | compiler-rt/test/ubsan/TestCases/ImplicitConversion/integer-truncation-summary.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/compiler-rt/test/ubsan/TestCases/ImplicitConversion/integer-truncation-summary.cpp b/compiler-rt/test/ubsan/TestCases/ImplicitConversion/integer-truncation-summary.cpp new file mode 100644 index 00000000000..a92e01fb4ab --- /dev/null +++ b/compiler-rt/test/ubsan/TestCases/ImplicitConversion/integer-truncation-summary.cpp @@ -0,0 +1,13 @@ +// RUN: %clangxx -fsanitize=implicit-integer-truncation %s -o %t +// RUN: %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-NOTYPE +// RUN: %env_ubsan_opts=report_error_type=1 %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-TYPE +// REQUIRES: !ubsan-standalone && !ubsan-standalone-static + +#include <stdint.h> + +int main() { + uint8_t t0 = (~(uint32_t(0))); + // CHECK-NOTYPE: SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior {{.*}}summary.cpp:[[@LINE-1]]:16 + // CHECK-TYPE: SUMMARY: UndefinedBehaviorSanitizer: implicit-integer-truncation {{.*}}summary.cpp:[[@LINE-2]]:16 + return 0; +} |

