repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git]
/
clang
/
test
/
PCH
/
undefined-internal.c
blob
242b1074e282a664d3baf3283f683a01f0f13f9a
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
();
10
}
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