[llvm-commits] [llvm] r105559 - /llvm/trunk/test/FrontendC++/2010-04-30-OptimizedMethod-Dbg.cpp

Stuart Hastings stuart at apple.com
Mon Jun 7 14:50:54 PDT 2010


Author: stuart
Date: Mon Jun  7 16:50:54 2010
New Revision: 105559

URL: http://llvm.org/viewvc/llvm-project?rev=105559&view=rev
Log:
Tweak test for debug/metadata change, update to FileCheck.  Radar 7424645.

Modified:
    llvm/trunk/test/FrontendC++/2010-04-30-OptimizedMethod-Dbg.cpp

Modified: llvm/trunk/test/FrontendC++/2010-04-30-OptimizedMethod-Dbg.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2010-04-30-OptimizedMethod-Dbg.cpp?rev=105559&r1=105558&r2=105559&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC++/2010-04-30-OptimizedMethod-Dbg.cpp (original)
+++ llvm/trunk/test/FrontendC++/2010-04-30-OptimizedMethod-Dbg.cpp Mon Jun  7 16:50:54 2010
@@ -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 @@
 };
 
 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;
 }
 





More information about the llvm-commits mailing list