[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / PCH / undefined-internal.c
blob242b1074e282a664d3baf3283f683a01f0f13f9a
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(void);
6 static void g(void);
7 void h(void) {
8 f();
9 g();
11 #else
12 static void g(void) {}
13 // expected-warning@5{{function 'f' has internal linkage but is not defined}}
14 // expected-note@8{{used here}}
15 #endif