Anton Korobeynikov | 779dff1 | 2007-04-01 22:03:04 +0000 | [diff] [blame^] | 1 | // RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep 'sret' | wc -l | grep '5' |
2 | |||||
3 | struct abc { | ||||
4 | int a; | ||||
5 | int b; | ||||
6 | int c; | ||||
7 | }; | ||||
8 | |||||
9 | struct abc foo1(void); | ||||
10 | struct abc foo2(); | ||||
11 | |||||
12 | void bar() { | ||||
13 | struct abc dummy1 = foo1(); | ||||
14 | struct abc dummy2 = foo2(); | ||||
15 | } |