repo.or.cz
/
llvm.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Clean up some of LVI:
[llvm.git]
/
test
/
FrontendC
/
2003-08-18-StructAsValue.c
blob
26cb78a4d24376d7f0946a54b460603f17f5c6df
1
// RUN: %llvmgcc -S %s -o - | llvm-as -o /dev/null
2
3
4
typedef
struct
{
5
int
op
;
6
}
event_t
;
7
8
event_t
test
(
int
X
) {
9
event_t foo
= {
1
},
bar
= {
2
};
10
return
X
?
foo
:
bar
;
11
}