diff options
Diffstat (limited to 'test/DebugInfo/2006-11-30-Pubnames.cpp')
-rw-r--r-- | test/DebugInfo/2006-11-30-Pubnames.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/test/DebugInfo/2006-11-30-Pubnames.cpp b/test/DebugInfo/2006-11-30-Pubnames.cpp index 4b9376e0a8..698f30bc05 100644 --- a/test/DebugInfo/2006-11-30-Pubnames.cpp +++ b/test/DebugInfo/2006-11-30-Pubnames.cpp @@ -1,10 +1,11 @@ // 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' +// RUN: %llvmgcc -S -O0 -g %s -o - | llvm-as | \ +// RUN: llc --disable-fp-elim -o %t.s -f +// RUN: as %t.s -o %t.o +// RUN: %link %t.o -o %t.exe +// RUN: echo {break main\nrun\np Pubnames::pubname} > %t.in +// RUN: gdb -q -batch -n -x %t.in %t.exe | tee %t.out | grep {\$1 = 10} // XFAIL: alpha|ia64|arm struct Pubnames { |