Add preliminary v2i32 support for SPU backend. As there are no
[oota-llvm.git] / test / FrontendC / 2010-01-14-StaticVariable.c
1 // This is a regression test on debug info to make sure that llvm emitted
2 // debug info does not crash gdb.
3 // RUN: %llvmgcc -S -O0 -g %s -o - | \
4 // RUN:    llc --disable-fp-elim -o %t.s -O0 -relocation-model=pic
5 // RUN: %compile_c %t.s -o %t.o
6 // RUN: echo {quit\n} > %t.in 
7 // RUN: gdb -q -batch -n -x %t.in %t.o > /dev/null
8
9 int foo() {
10         static int i = 42;
11         return i;
12 }