]> granicus.if.org Git - clang/commitdiff
Add more control-flow to test case.
authorTed Kremenek <kremenek@apple.com>
Fri, 26 Sep 2008 23:05:47 +0000 (23:05 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 26 Sep 2008 23:05:47 +0000 (23:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56707 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/dead-stores.c

index 7335df5118095eda2c3632f330d07884f177b7d8..2a67afd0b0f56c4e3e301a53dafbcb3e092cc784 100644 (file)
@@ -116,7 +116,8 @@ void f15(unsigned x, unsigned y) {
 
 int f16(int x) {
   x = x * 2;
-  x = sizeof(int [x = (x || x + 1) * 2]);  // expected-warning{{Although the value stored to 'x' is used}}
+  x = sizeof(int [x = (x || x + 1) * 2]) // expected-warning{{Although the value stored to 'x' is used}}
+      ? 5 : 8;
   return x;
 }