summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2007-10-25 00:50:14 +0000
committerDale Johannesen <dalej@apple.com>2007-10-25 00:50:14 +0000
commitea839ef1f0e02c9071244037ba2a5fb0dc736f30 (patch)
treea9bd125f38a4205fc815fa35a05be454bfebfdbf /llvm
parent35e564ed09d57b6ceae9022afaa77635b16da53e (diff)
downloadbcm5719-llvm-ea839ef1f0e02c9071244037ba2a5fb0dc736f30.tar.gz
bcm5719-llvm-ea839ef1f0e02c9071244037ba2a5fb0dc736f30.zip
Testcase for PR 1397.
llvm-svn: 43323
Diffstat (limited to 'llvm')
-rw-r--r--llvm/test/CFrontend/sret2.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/CFrontend/sret2.c b/llvm/test/CFrontend/sret2.c
new file mode 100644
index 00000000000..137f5602c7a
--- /dev/null
+++ b/llvm/test/CFrontend/sret2.c
@@ -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(){}
OpenPOWER on IntegriCloud