diff options
Diffstat (limited to 'test/Sema/uninit-variables.c')
-rw-r--r-- | test/Sema/uninit-variables.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Sema/uninit-variables.c b/test/Sema/uninit-variables.c index 6c3c7c71c8..914156da8b 100644 --- a/test/Sema/uninit-variables.c +++ b/test/Sema/uninit-variables.c @@ -354,8 +354,8 @@ int test52(int a, int b) { } void test53() { - int x; - int y = (x); + int x; // expected-note {{variable 'x' is declared here}} expected-note {{add initialization to silence this warning}} + int y = (x); // expected-warning {{variable 'x' is uninitialized when used here}} } // This CFG caused the uninitialized values warning to inf-loop. |