forked from OSchip/llvm-project
Fix integer tests on platforms where uint64_t is 'unsigned long long'.
llvm-svn: 196612
This commit is contained in:
parent
ce5f93efd5
commit
186507dac6
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue