blob: 11ac5d6824e8ebaf9852e379cc0dfa6e3faa1287 [file] [log] [blame]
Dan Gohman8c89a502007-08-15 13:36:28 +00001// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep sret | count 5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
3struct abc {
Duncan Sandsd6635612008-04-21 08:17:05 +00004 long a;
5 long b;
6 long c;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007};
8
9struct abc foo1(void);
10struct abc foo2();
11
12void bar() {
13 struct abc dummy1 = foo1();
14 struct abc dummy2 = foo2();
15}