blob: 700f5642d33a30d9b4fe09a74ca28678f5b99356 [file] [log] [blame]
Chris Lattnerefa4ec02002-02-14 00:18:44 +00001/* 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
8typedef struct {
9 short x;
10} foostruct;
11
12int foo(foostruct ic);
13
14void test() {
15 foostruct xqic;
16 foo(xqic);
17}
18
19