diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-02-03 06:51:50 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-02-03 06:51:50 +0000 |
commit | 553304523bcce281aa3b1afe0f84ae34a90a3c86 (patch) | |
tree | 406565eb2549294190389eb5cecdd755bb6ae98e /test/Sema/uninit-variables.c | |
parent | 59d89c3b1f042e8d02872ab9700d162b13887eeb (diff) |
Reenable -Wuninitialized warning for captured block variables.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124782 91177308-0d34-0410-b5e6-96231b3b80d8
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 ce3f93d590..1a080299aa 100644 --- a/test/Sema/uninit-variables.c +++ b/test/Sema/uninit-variables.c @@ -193,8 +193,8 @@ int test28() { } void test29() { - int x; - (void) ^{ (void) x; }; + int x; // expected-note{{variable 'x' is declared here}} expected-note{{add initialization to silence this warning}} + (void) ^{ (void) x; }; // expected-warning{{variable 'x' is possibly uninitialized when captured by block}} } void test30() { |