r301787 - Fix test that was incorrected merged between patches.

Nick Lewycky via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 30 19:20:06 PDT 2017


Author: nicholas
Date: Sun Apr 30 21:20:06 2017
New Revision: 301787

URL: http://llvm.org/viewvc/llvm-project?rev=301787&view=rev
Log:
Fix test that was incorrected merged between patches.

Modified:
    cfe/trunk/test/Sema/integer-overflow.c

Modified: cfe/trunk/test/Sema/integer-overflow.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/integer-overflow.c?rev=301787&r1=301786&r2=301787&view=diff
==============================================================================
--- cfe/trunk/test/Sema/integer-overflow.c (original)
+++ cfe/trunk/test/Sema/integer-overflow.c Sun Apr 30 21:20:06 2017
@@ -149,7 +149,7 @@ uint64_t check_integer_overflows(int i)
 
 // expected-warning at +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 at +1 2{{overflow in expression; result is 536870912 with type 'int'}}
   (void)(i ? (4608 * 1024 * 1024) : (4608 * 1024 * 1024));




More information about the cfe-commits mailing list