blob: 48370a5fd6412a6cd9135c2a680ce29a6db6f05a [file] [log] [blame]
Argyrios Kyrtzidis355a9fe2010-09-19 21:21:25 +00001// RUN: %clang_cc1 -fsyntax-only -Wunused-label -verify %s
2
3void f() {
4 a:
5 goto a;
6 b: // expected-warning{{unused}}
Chris Lattner57ad3782011-02-17 20:34:02 +00007 c: __attribute__((unused));
8 d: __attribute__((noreturn)); // expected-warning {{'noreturn' attribute only applies to functions}}
Argyrios Kyrtzidis1a186002010-09-28 14:54:07 +00009 goto d;
Argyrios Kyrtzidis355a9fe2010-09-19 21:21:25 +000010 return;
11}