1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/test/DebugInfo/2006-11-30-Pubnames.cpp

20 lines
665 B
C++
Raw Normal View History

2006-11-30 16:31:49 +01:00
// This is a regression test on debug info to make sure that we can access
// qualified global names.
2006-11-30 16:25:59 +01:00
// RUN: %llvmgcc -S -O0 -g %s -o - | llvm-as | llc --disable-fp-elim -o Output/Pubnames.s -f
// RUN: as Output/Pubnames.s -o Output/Pubnames.o
// RUN: g++ Output/Pubnames.o -o Output/Pubnames.exe
// RUN: ( echo "break main"; echo "run" ; echo "p Pubnames::pubname" ) > Output/Pubnames.gdbin
// RUN: gdb -q -batch -n -x Output/Pubnames.gdbin Output/Pubnames.exe | tee Output/Pubnames.out | grep '10'
// XFAIL: alpha|ia64|arm
2006-11-30 16:25:59 +01:00
struct Pubnames {
static int pubname;
};
int Pubnames::pubname = 10;
int main (int argc, char** argv) {
Pubnames p;
return 0;
}