Browse Source

Add more control-flow to test case.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56707 91177308-0d34-0410-b5e6-96231b3b80d8
Ted Kremenek 17 years ago
parent
commit
d2025e2673
1 changed files with 2 additions and 1 deletions
  1. 2 1
      test/Analysis/dead-stores.c

+ 2 - 1
test/Analysis/dead-stores.c

@@ -116,7 +116,8 @@ void f15(unsigned x, unsigned y) {
 
 
 int f16(int x) {
 int f16(int x) {
   x = x * 2;
   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;
   return x;
 }
 }