Fix test that was incorrected merged between patches.

llvm-svn: 301787
This commit is contained in:
Nick Lewycky 2017-05-01 02:20:06 +00:00
parent 1c7df0f3f0
commit 49675ac409
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ uint64_t check_integer_overflows(int i) {
// expected-warning@+2 {{overflow in expression; result is 536870912 with type 'int'}}
uint64_t *b;
(void)b[4608 * 1024 * 1024] + 1;
(void)b[4608 * 1024 * 1024];
// expected-warning@+1 2{{overflow in expression; result is 536870912 with type 'int'}}
(void)(i ? (4608 * 1024 * 1024) : (4608 * 1024 * 1024));