blob: 178527f01c0f7226d5e0032abf1dc85c19e38e82 [file] [log] [blame]
Tanya Lattnere6bbc012010-02-12 00:07:30 +00001// RUN: %clang_cc1 -fsyntax-only -Wunused-function -verify %s
2
3void foo() {}
4static void f2() {}
5static void f1() {f2();} // expected-warning{{unused}}
6
7static int f0() { return 17; } // expected-warning{{unused}}
8int x = sizeof(f0());
9
10static void f3();
11extern void f3() { } // expected-warning{{unused}}
12
13// FIXME: This will trigger a warning when it should not.
14// Update once PR6281 is fixed.
15//inline static void f4();
16//void f4() { }