[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / Sema / warn-unused-label.c
blob75f178aa2d5b80b731f4acacf8cdd809fd78f71d
1 // RUN: %clang_cc1 -fsyntax-only -Wunused-label -verify %s
3 void f(void) {
4 a:
5 goto a;
6 b: // expected-warning{{unused}}
7 c: __attribute__((unused));
8 d: __attribute__((noreturn)); // expected-warning {{'noreturn' attribute only applies to functions}}
9 goto d;
10 return;
13 void PR8455(void) {
14 L: __attribute__((unused)) return; // ok, no semicolon required