Re-enable 91381 with fixes.
[oota-llvm.git] / test / FrontendC++ / 2006-11-30-Pubnames.cpp
1 // This is a regression test on debug info to make sure that we can access 
2 // qualified global names.
3 // RUN: %llvmgcc -S -O0 -g %s -o - | \
4 // RUN:   llc --disable-fp-elim -o %t.s -O0
5 // RUN: %compile_c %t.s -o %t.o
6 // RUN: %link %t.o -o %t.exe
7 // RUN: %llvmdsymutil %t.exe 
8 // RUN: echo {break main\nrun\np Pubnames::pubname} > %t.in
9 // RUN: gdb -q -batch -n -x %t.in %t.exe | tee %t.out | grep {\$1 = 10}
10 //
11 // XFAIL: alpha,arm,powerpc-apple-darwin
12 // FIXME: This doesn't work for PPC Darwin because we turned off debugging on
13 // that platform.
14
15 struct Pubnames {
16   static int pubname;
17 };
18
19 int Pubnames::pubname = 10;
20
21 int main (int argc, char** argv) {
22   Pubnames p;
23   return 0;
24 }