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