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