xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/sret.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1 // RUN: %clang_cc1 %s -emit-llvm -o - | grep sret | count 5
2 
3 struct abc {
4  long a;
5  long b;
6  long c;
7  long d;
8  long e;
9 };
10 
11 struct abc foo1(void);
12 struct abc foo2();
13 
bar()14 void bar() {
15   struct abc dummy1 = foo1();
16   struct abc dummy2 = foo2();
17 }
18