Home | History | Annotate | Download | only in Sema

Lines Matching defs:unused

1 // RUN: %clang_cc1 -fsyntax-only -Wused-but-marked-unused -Wunused-function -Wunneeded-internal-declaration -verify %s
7 static void f1() {f2();} // expected-warning{{unused}}
13 extern void f3() { } // expected-warning{{unused}}
16 void f4() { } // expected-warning{{unused}}
28 __attribute__((unused)) static void bar(void);
37 static void f10(void); // expected-warning{{unused}}
41 static void f11(void) { } // expected-warning{{unused}}
43 static void f12(void) { } // expected-warning{{unused}}
47 static void unused(void) { unused(); } // expected-warning{{not needed and will not be emitted}}
57 extern void a(void) __attribute__((unused));
58 extern void b(void) __attribute__((unused));