Merge branch 'master' into msp430
[llvm/msp430.git] / test / FrontendC / 2002-02-13-UnnamedLocal.c
blob6fdc7efdd3a3a0ac5ce0fac9c54cfa3939592268
1 // RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
3 /* Testcase for a problem where GCC allocated xqic to a register,
4 * and did not have a VAR_DECL that explained the stack slot to LLVM.
5 * Now the LLVM code synthesizes a stack slot if one is presented that
6 * has not been previously recognized. This is where alloca's named
7 * 'local' come from now.
8 */
10 typedef struct {
11 short x;
12 } foostruct;
14 int foo(foostruct ic);
16 void test() {
17 foostruct xqic;
18 foo(xqic);