llvm-project
15 строк · 337.0 Байт
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
5static void f(void);
6static void g(void);
7void h(void) {
8f();
9g();
10}
11#else
12static void g(void) {}
13// expected-warning@5{{function 'f' has internal linkage but is not defined}}
14// expected-note@8{{used here}}
15#endif
16