remove a dead bool.
[llvm/avr.git] / test / FrontendC++ / 2006-11-30-Pubnames.cpp
blobb44566af6a68d14241d8f7b6c65e7c4570705058
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 - | llvm-as | \
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 // XFAIL: alpha|arm
11 struct Pubnames {
12 static int pubname;
15 int Pubnames::pubname = 10;
17 int main (int argc, char** argv) {
18 Pubnames p;
19 return 0;