projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gcroot testcase, patch by Eric Christopher.
[oota-llvm.git]
/
test
/
CFrontend
/
2003-08-18-StructAsValue.c
diff --git
a/test/CFrontend/2003-08-18-StructAsValue.c
b/test/CFrontend/2003-08-18-StructAsValue.c
index 84a66ae3f9f44edab286a0180764981c6316b889..649eadc4e45110a262ed5f67b35f3acf4971bc43 100644
(file)
--- a/
test/CFrontend/2003-08-18-StructAsValue.c
+++ b/
test/CFrontend/2003-08-18-StructAsValue.c
@@
-1,9
+1,11
@@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
typedef struct {
int op;
} event_t;
event_t test(int X) {
- event_t foo
, bar
;
+ event_t foo
= { 1 }, bar = { 2 }
;
return X ? foo : bar;
}