1 // RUN: %clang_cc1 -emit-pch %s -o %t
2 // RUN: %clang_cc1 -include-pch %t %s -verify
3 #ifndef HEADER_H
4 #define HEADER_H
5 static void f();
6 static void g();
h()7 void h() {
8   f();
9   g();
10 }
11 #else
g()12 static void g() {}
13 // expected-warning@5{{function 'f' has internal linkage but is not defined}}
14 // expected-note@8{{used here}}
15 #endif
16