| 1 | // RUN: %clang_cc1 %s -emit-llvm -o - | grep sret | grep -v 'sret.c' | count 4 |
|---|---|
| 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 | |
| 14 | void bar() { |
| 15 | struct abc dummy1 = foo1(); |
| 16 | struct abc dummy2 = foo2(); |
| 17 | } |
| 18 |