summaryrefslogtreecommitdiff
path: root/test/DebugInfo
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-11-07 07:58:02 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-11-07 07:58:02 +0000
commit65917883db3978739b3bd3ab6be934fddf6f5499 (patch)
tree42c9a3d93548c9234278134f6d74c1797344dba1 /test/DebugInfo
parent3b0f66b502a21a84e1a15201ae2bfff6b95eef2c (diff)
downloadllvm-65917883db3978739b3bd3ab6be934fddf6f5499.tar.gz
llvm-65917883db3978739b3bd3ab6be934fddf6f5499.tar.bz2
llvm-65917883db3978739b3bd3ab6be934fddf6f5499.tar.xz
Make some corrections to this test case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31497 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/DebugInfo')
-rw-r--r--test/DebugInfo/2006-11-06-StackTrace.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/DebugInfo/2006-11-06-StackTrace.cpp b/test/DebugInfo/2006-11-06-StackTrace.cpp
index fcc8c20d19..758bc93f68 100644
--- a/test/DebugInfo/2006-11-06-StackTrace.cpp
+++ b/test/DebugInfo/2006-11-06-StackTrace.cpp
@@ -1,9 +1,11 @@
// This is a regression test on debug info to make sure that we can get a
// meaningful stack trace from a C++ program.
-// RUN: %llvmgcc -S -O0 -g %s -o Output/%s.ll
-// RUN: llvm-as < Output/%s.ll | llc -o Output/%s.s
-// RUN: gcc -g Output/%s.s -o Output/%s.exe
-// RUN: ( echo "break DeepStack::deepest"; echo "run 17" ; echo "where" ) | gdb Output/%s.exe | grep '#0 DeepStack::deepest (this=.*,x=33)'
+// RUN: %llvmgcc -S -O0 -g %s -o - | llvm-as | llc -o Output/StackTrace.s -f
+// RUN: gcc -g Output/StackTrace.s -o Output/StackTrace.exe -lstdc++
+// RUN: ( echo "break DeepStack::deepest"; echo "run 17" ; echo "where" ) > Output/StackTrace.gdbin
+// RUN: gdb -q -batch -n -x Output/StackTrace.gdbin Output/StackTrace.exe | tee Output/StackTrace.out | grep '#0 DeepStack::deepest (this=.*,x=33)'
+// RUN: gdb -q -batch -n -x Output/StackTrace.gdbin Output/StackTrace.exe | grep '#7 0x.* in main(argc=1, argv=.*)'
+
#include <stdlib.h>