aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStuart Hastings <stuart@apple.com>2010-06-07 21:50:54 +0000
committerStuart Hastings <stuart@apple.com>2010-06-07 21:50:54 +0000
commit8ece123ebd875a39e1fcad7d44e3e2d30383f942 (patch)
tree00e9358ffd28c9ba6cf4b9ce2132016a97200784
parent8077e76f934d575437a55315a0d5fcdcab6d6608 (diff)
downloadexternal_llvm-8ece123ebd875a39e1fcad7d44e3e2d30383f942.zip
external_llvm-8ece123ebd875a39e1fcad7d44e3e2d30383f942.tar.gz
external_llvm-8ece123ebd875a39e1fcad7d44e3e2d30383f942.tar.bz2
Tweak test for debug/metadata change, update to FileCheck. Radar 7424645.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105559 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/FrontendC++/2010-04-30-OptimizedMethod-Dbg.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/FrontendC++/2010-04-30-OptimizedMethod-Dbg.cpp b/test/FrontendC++/2010-04-30-OptimizedMethod-Dbg.cpp
index dc9b16c..7052dc0 100644
--- a/test/FrontendC++/2010-04-30-OptimizedMethod-Dbg.cpp
+++ b/test/FrontendC++/2010-04-30-OptimizedMethod-Dbg.cpp
@@ -1,5 +1,4 @@
-// RUN: %llvmgcc -g -S -O2 %s -o %t
-// RUN: grep "i1 false, i1 true. . . DW_TAG_subprogram" %t | count 2
+// RUN: %llvmgcc -g -S -O2 %s -o - | FileCheck %s
class foo {
public:
@@ -8,10 +7,12 @@ public:
};
int foo::bar(int x) {
+ // CHECK: {{i1 false, i1 true(, i[0-9]+ [^\}]+[}]|[}]) ; \[ DW_TAG_subprogram \]}}
return x*4 + 1;
}
int foo::baz(int x) {
+ // CHECK: {{i1 false, i1 true(, i[0-9]+ [^\},]+[}]|[}]) ; \[ DW_TAG_subprogram \]}}
return x*4 + 1;
}