]> granicus.if.org Git - clang/commitdiff
Fix test that was incorrected merged between patches.
authorNick Lewycky <nicholas@mxc.ca>
Mon, 1 May 2017 02:20:06 +0000 (02:20 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Mon, 1 May 2017 02:20:06 +0000 (02:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@301787 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/integer-overflow.c

index 2f5747dd0bf8f456086ec600295a97adef241b0c..b2b7903e516ff0541315c0656a32eebbeb923858 100644 (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));