mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-20 09:30:43 +00:00
2c7df60b48
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32306 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
665 B
C++
20 lines
665 B
C++
// This is a regression test on debug info to make sure that we can access
|
|
// qualified global names.
|
|
// 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
|
|
|
|
struct Pubnames {
|
|
static int pubname;
|
|
};
|
|
|
|
int Pubnames::pubname = 10;
|
|
|
|
int main (int argc, char** argv) {
|
|
Pubnames p;
|
|
return 0;
|
|
}
|