Chris Lattner | efa4ec0 | 2002-02-14 00:18:44 +0000 | [diff] [blame^] | 1 | /* Testcase for a problem where GCC allocated xqic to a register, |
2 | * and did not have a VAR_DECL that explained the stack slot to LLVM. | ||||
3 | * Now the LLVM code synthesizes a stack slot if one is presented that | ||||
4 | * has not been previously recognized. This is where alloca's named | ||||
5 | * 'local' come from now. | ||||
6 | */ | ||||
7 | |||||
8 | typedef struct { | ||||
9 | short x; | ||||
10 | } foostruct; | ||||
11 | |||||
12 | int foo(foostruct ic); | ||||
13 | |||||
14 | void test() { | ||||
15 | foostruct xqic; | ||||
16 | foo(xqic); | ||||
17 | } | ||||
18 | |||||
19 |