diff options
author | Will Dietz <wdietz2@illinois.edu> | 2013-12-06 21:49:18 +0000 |
---|---|---|
committer | Will Dietz <wdietz2@illinois.edu> | 2013-12-06 21:49:18 +0000 |
commit | 2786b0fa0d37196e7ccf77d706764f1008381ba4 (patch) | |
tree | 94ce6742220c8d0aeef968688aacb759874797c1 /lib/ubsan | |
parent | b08ecee6bf873ebbf6449f54365c2b903946134b (diff) |
Fix integer tests on platforms where uint64_t is 'unsigned long long'.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@196612 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ubsan')
-rw-r--r-- | lib/ubsan/lit_tests/TestCases/Integer/no-recover.cpp | 2 | ||||
-rw-r--r-- | lib/ubsan/lit_tests/TestCases/Integer/uadd-overflow.cpp | 2 | ||||
-rw-r--r-- | lib/ubsan/lit_tests/TestCases/Integer/usub-overflow.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/ubsan/lit_tests/TestCases/Integer/no-recover.cpp b/lib/ubsan/lit_tests/TestCases/Integer/no-recover.cpp index 269b464ab..64787b7cf 100644 --- a/lib/ubsan/lit_tests/TestCases/Integer/no-recover.cpp +++ b/lib/ubsan/lit_tests/TestCases/Integer/no-recover.cpp @@ -17,6 +17,6 @@ int main() { // ABORT: no-recover.cpp:[[@LINE-2]]:5: runtime error: unsigned integer overflow: 2271560481 + 3989547399 cannot be represented in type 'unsigned int' (void)(uint64_t(10000000000000000000ull) + uint64_t(9000000000000000000ull)); - // RECOVER: 10000000000000000000 + 9000000000000000000 cannot be represented in type 'unsigned long' + // RECOVER: 10000000000000000000 + 9000000000000000000 cannot be represented in type 'unsigned {{long( long)?}}' // ABORT-NOT: runtime error } diff --git a/lib/ubsan/lit_tests/TestCases/Integer/uadd-overflow.cpp b/lib/ubsan/lit_tests/TestCases/Integer/uadd-overflow.cpp index d97a642a9..2ef31c064 100644 --- a/lib/ubsan/lit_tests/TestCases/Integer/uadd-overflow.cpp +++ b/lib/ubsan/lit_tests/TestCases/Integer/uadd-overflow.cpp @@ -18,7 +18,7 @@ int main() { #ifdef ADD_I64 (void)(uint64_t(10000000000000000000ull) + uint64_t(9000000000000000000ull)); - // CHECK-ADD_I64: 10000000000000000000 + 9000000000000000000 cannot be represented in type 'unsigned long' + // CHECK-ADD_I64: 10000000000000000000 + 9000000000000000000 cannot be represented in type 'unsigned {{long( long)?}}' #endif #ifdef ADD_I128 diff --git a/lib/ubsan/lit_tests/TestCases/Integer/usub-overflow.cpp b/lib/ubsan/lit_tests/TestCases/Integer/usub-overflow.cpp index 44621fd80..78f745578 100644 --- a/lib/ubsan/lit_tests/TestCases/Integer/usub-overflow.cpp +++ b/lib/ubsan/lit_tests/TestCases/Integer/usub-overflow.cpp @@ -17,7 +17,7 @@ int main() { #ifdef SUB_I64 (void)(uint64_t(8000000000000000000ll) - uint64_t(9000000000000000000ll)); - // CHECK-SUB_I64: 8000000000000000000 - 9000000000000000000 cannot be represented in type 'unsigned long' + // CHECK-SUB_I64: 8000000000000000000 - 9000000000000000000 cannot be represented in type 'unsigned {{long( long)?}}' #endif #ifdef SUB_I128 |