summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/ubsan/lit_tests/Integer/shift.cpp
diff options
context:
space:
mode:
authorWill Dietz <wdietz2@illinois.edu>2012-12-02 18:43:33 +0000
committerWill Dietz <wdietz2@illinois.edu>2012-12-02 18:43:33 +0000
commitb28179be109d69c663efdae2df15563ab3e9a531 (patch)
treee72fb1eeddbde7ad26d474fa132d64d53b75bf83 /compiler-rt/lib/ubsan/lit_tests/Integer/shift.cpp
parent1157e1410c833b5a167807370a68c073961c6f5c (diff)
downloadbcm5719-llvm-b28179be109d69c663efdae2df15563ab3e9a531.tar.gz
bcm5719-llvm-b28179be109d69c663efdae2df15563ab3e9a531.zip
[ubsan] Replace "fatal error" with "runtime error".
llvm-svn: 169112
Diffstat (limited to 'compiler-rt/lib/ubsan/lit_tests/Integer/shift.cpp')
-rw-r--r--compiler-rt/lib/ubsan/lit_tests/Integer/shift.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler-rt/lib/ubsan/lit_tests/Integer/shift.cpp b/compiler-rt/lib/ubsan/lit_tests/Integer/shift.cpp
index 8c06a8259dc..19101c53e75 100644
--- a/compiler-rt/lib/ubsan/lit_tests/Integer/shift.cpp
+++ b/compiler-rt/lib/ubsan/lit_tests/Integer/shift.cpp
@@ -20,18 +20,18 @@ int main() {
b <<= 1; // still ok, unsigned
#ifdef LSH_OVERFLOW
- // CHECK-LSH_OVERFLOW: shift.cpp:24:5: fatal error: left shift of negative value -2147483648
+ // CHECK-LSH_OVERFLOW: shift.cpp:24:5: runtime error: left shift of negative value -2147483648
a OP 1;
#endif
#ifdef TOO_LOW
- // CHECK-TOO_LOW: shift.cpp:29:5: fatal error: shift exponent -3 is negative
+ // CHECK-TOO_LOW: shift.cpp:29:5: runtime error: shift exponent -3 is negative
a OP (-3);
#endif
#ifdef TOO_HIGH
a = 0;
- // CHECK-TOO_HIGH: shift.cpp:35:5: fatal error: shift exponent 32 is too large for 32-bit type 'int'
+ // CHECK-TOO_HIGH: shift.cpp:35:5: runtime error: shift exponent 32 is too large for 32-bit type 'int'
a OP 32;
#endif
}
OpenPOWER on IntegriCloud