summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/integer-overflow.c
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2017-05-01 02:20:06 +0000
committerNick Lewycky <nicholas@mxc.ca>2017-05-01 02:20:06 +0000
commit49675ac40973edac261fb474238405a45a1be796 (patch)
treef9f9f328117821b94050bf8efb7fec9fcddb9597 /clang/test/Sema/integer-overflow.c
parent1c7df0f3f0b50a79037e664bb7b538a3e63e53bf (diff)
downloadbcm5719-llvm-49675ac40973edac261fb474238405a45a1be796.tar.gz
bcm5719-llvm-49675ac40973edac261fb474238405a45a1be796.zip
Fix test that was incorrected merged between patches.
llvm-svn: 301787
Diffstat (limited to 'clang/test/Sema/integer-overflow.c')
-rw-r--r--clang/test/Sema/integer-overflow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Sema/integer-overflow.c b/clang/test/Sema/integer-overflow.c
index 2f5747dd0bf..b2b7903e516 100644
--- a/clang/test/Sema/integer-overflow.c
+++ b/clang/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));
OpenPOWER on IntegriCloud