aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendC/sret2.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/FrontendC/sret2.c')
-rw-r--r--test/FrontendC/sret2.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/FrontendC/sret2.c b/test/FrontendC/sret2.c
new file mode 100644
index 0000000..7b621f9
--- /dev/null
+++ b/test/FrontendC/sret2.c
@@ -0,0 +1,9 @@
+// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep sret | count 2
+
+struct abc {
+ long a;
+ long b;
+ long c;
+};
+
+struct abc foo2(){}