diff options
| -rw-r--r-- | clang/test/Analysis/conditional-op-missing-lhs.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/clang/test/Analysis/conditional-op-missing-lhs.c b/clang/test/Analysis/conditional-op-missing-lhs.c index 8befc39854f..4854c28c7d9 100644 --- a/clang/test/Analysis/conditional-op-missing-lhs.c +++ b/clang/test/Analysis/conditional-op-missing-lhs.c @@ -2,25 +2,25 @@ void f1() { - int i; - - int j = i ? : 1; // expected-warning{{use of uninitialized variable}} //expected-warning{{Value stored to 'j' during its initialization is never read}} + int i; + + int j = i ? : 1; // expected-warning{{use of uninitialized variable}} //expected-warning{{Value stored to 'j' during its initialization is never read}} } void *f2(int *i) { - return i ? : 0; + return i ? : 0; } void *f3(int *i) { - int a; - - return &a ? : i; + int a; + + return &a ? : i; } void f4() { - char c[1 ? : 2]; + char c[1 ? : 2]; } |

