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