Dan Gohman | 8c89a50 | 2007-08-15 13:36:28 +0000 | [diff] [blame] | 1 | // RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep sret | count 5 |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 2 | |
3 | struct abc { | ||||
Duncan Sands | d663561 | 2008-04-21 08:17:05 +0000 | [diff] [blame] | 4 | long a; |
5 | long b; | ||||
6 | long c; | ||||
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 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 | } |