diff options
Diffstat (limited to 'clang/test/Sema/warn-unused-label.c')
| -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; } |

