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
/
different-diagnostic-level.c
blob
22093baf5c545c16dc832ce6f3f31b67179a0bc0
1
// RUN: %clang -x c-header %s -Weverything -o %t.h.pch
2
// RUN: %clang -x c %s -w -include %t.h -fsyntax-only -Xclang -verify
3
4
#ifndef HEADER
5
#define HEADER
6
7
extern
int
foo
;
8
9
#else
10
11
void
f
(
void
) {
12
int
a
=
foo
;
13
// Make sure we parsed this by getting an error.
14
int
b
=
bar
;
// expected-error {{undeclared}}
15
}
16
17
#endif