You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
321 B
16 lines
321 B
// 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
|