From: Nick Lewycky Date: Mon, 1 May 2017 02:20:06 +0000 (+0000) Subject: Fix test that was incorrected merged between patches. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c6deeaad9144ebb8f4edb223498d94c524990ac6;p=clang Fix test that was incorrected merged between patches. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@301787 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Sema/integer-overflow.c b/test/Sema/integer-overflow.c index 2f5747dd0b..b2b7903e51 100644 --- a/test/Sema/integer-overflow.c +++ b/test/Sema/integer-overflow.c @@ -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));