Testcase for PR 1397.
authorDale Johannesen <dalej@apple.com>
Thu, 25 Oct 2007 00:50:14 +0000 (00:50 +0000)
committerDale Johannesen <dalej@apple.com>
Thu, 25 Oct 2007 00:50:14 +0000 (00:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43323 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/sret2.c [new file with mode: 0644]

diff --git a/test/CFrontend/sret2.c b/test/CFrontend/sret2.c
new file mode 100644 (file)
index 0000000..137f560
--- /dev/null
@@ -0,0 +1,9 @@
+// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep sret | count 2
+
+struct abc {
+ int a;
+ int b;
+ int c;
+};
+struct abc foo2(){}