diff options
| author | Chris Lattner <sabre@nondot.org> | 2011-02-17 20:34:02 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2011-02-17 20:34:02 +0000 |
| commit | cab02a60d231b8ca4df80f88689827d8b4cea95e (patch) | |
| tree | 060d42ab1daa9e8ce9b1d92c55e9014bc5d97e70 /clang/test | |
| parent | 50c3c1316a0faf8b3566489aa5030a3f9ed13759 (diff) | |
| download | bcm5719-llvm-cab02a60d231b8ca4df80f88689827d8b4cea95e.tar.gz bcm5719-llvm-cab02a60d231b8ca4df80f88689827d8b4cea95e.zip | |
Step #2/N of __label__ support: keep pushing LabelDecl forward,
making them be template instantiated in a more normal way and
make them handle attributes like other decls.
This fixes the used/unused label handling stuff, making it use
the same infrastructure as other decls.
llvm-svn: 125771
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Sema/warn-unused-label.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Sema/warn-unused-label.c b/clang/test/Sema/warn-unused-label.c index 03be7da2fc9..48370a5fd64 100644 --- a/clang/test/Sema/warn-unused-label.c +++ b/clang/test/Sema/warn-unused-label.c @@ -4,8 +4,8 @@ void f() { a: goto a; b: // expected-warning{{unused}} - c: __attribute__((unused)); // expected-warning {{unused label 'c'}} - d: __attribute__((noreturn)); // expected-warning {{the only valid attribute for labels is 'unused'}} + c: __attribute__((unused)); + d: __attribute__((noreturn)); // expected-warning {{'noreturn' attribute only applies to functions}} goto d; return; } |

