aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/CFrontend/2003-08-18-StructAsValue.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CFrontend/2003-08-18-StructAsValue.c b/test/CFrontend/2003-08-18-StructAsValue.c
new file mode 100644
index 0000000..84a66ae
--- /dev/null
+++ b/test/CFrontend/2003-08-18-StructAsValue.c
@@ -0,0 +1,9 @@
+
+typedef struct {
+ int op;
+} event_t;
+
+event_t test(int X) {
+ event_t foo, bar;
+ return X ? foo : bar;
+}