diff options
Diffstat (limited to 'test/SemaCXX/integer-overflow.cpp')
-rw-r--r-- | test/SemaCXX/integer-overflow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaCXX/integer-overflow.cpp b/test/SemaCXX/integer-overflow.cpp index a119f0eabe3a..6abc95614496 100644 --- a/test/SemaCXX/integer-overflow.cpp +++ b/test/SemaCXX/integer-overflow.cpp @@ -164,7 +164,7 @@ uint64_t check_integer_overflows(int i) { //expected-note {{declared here}} // expected-warning@+3 {{array index 536870912 is past the end of the array (which contains 10 elements)}} // expected-note@+1 {{array 'a' declared here}} uint64_t a[10]; - a[4608 * 1024 * 1024] = 1i; + a[4608 * 1024 * 1024] = 1; // expected-warning@+1 2{{overflow in expression; result is 536870912 with type 'int'}} return ((4608 * 1024 * 1024) + ((uint64_t)(4608 * 1024 * 1024))); |