diff options
-rw-r--r-- | test/Analysis/conditional-op-missing-lhs.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/Analysis/conditional-op-missing-lhs.c b/test/Analysis/conditional-op-missing-lhs.c index 8befc39854..4854c28c7d 100644 --- a/test/Analysis/conditional-op-missing-lhs.c +++ b/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]; } |