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
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
utils
/
update_cc_test_checks
/
Inputs
/
def-and-decl.c
blob
f1c95c445c2f32793140faf8ccc471e0f4581499
1
// Check that the CHECK lines are generated before the definition and not the declaration
2
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu %s -emit-llvm -o - | FileCheck %s
3
4
int
foo
(
int
arg
);
5
6
void
empty_function
(
void
);
7
8
int
main
(
void
) {
9
empty_function
();
10
return
foo
(
1
);
11
}
12
13
int
foo
(
int
arg
) {
14
return
arg
;
15
}
16
17
void
empty_function
(
void
) {}