OSDN Git Service

PR testsuite/35119
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Feb 2008 14:33:57 +0000 (14:33 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Feb 2008 14:33:57 +0000 (14:33 +0000)
* testsuite/g++.dg/template/spec35.C
Change the regular expressions in dg-final to match the assembly
code generated by Darwin 9.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@132344 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/spec35.C

index 9aa7ae8..26b41f8 100644 (file)
@@ -1,3 +1,10 @@
+2008-02-15  Dominique d'Humieres  <dominiq@lps.ens.fr>
+
+       PR testsuite/35119
+       * testsuite/g++.dg/template/spec35.C
+       Change the regular expressions in dg-final to match the assembly
+       code generated by Darwin 9.
+
 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
 
        * gcc.dg/cpp/pragma-pop_macro-1.c: Fix dg-do directive.
index 801b744..cae33ed 100644 (file)
@@ -8,22 +8,22 @@
 template<class T>
 static void f1 (T) { }
 
-// { dg-final { scan-assembler-not ".glob(a|)l\[\t \]*_Z2f1IfEvT_" } }
+// { dg-final { scan-assembler-not ".glob(a|)l\[\t \]*_?_Z2f1IfEvT_" } }
 template<>
 void f1<float> (float) { }  // Expected to have static linkage
 
 template<class T>
 void f2 (T) { }
 
-// { dg-final { scan-assembler ".glob(a|)l\[\t \]*_Z2f2IfEvT_" } }
+// { dg-final { scan-assembler ".glob(a|)l\[\t \]*_?_Z2f2IfEvT_" } }
 template<>
 void f2<float> (float) { }  // Expected to have global linkage
 
 void instantiator ()
 {
-  // { dg-final { scan-assembler-not ".glob(a|)l\[\t \]*_Z2f1IiEvT_" } }
+  // { dg-final { scan-assembler-not ".glob(a|)l\[\t \]*_?_Z2f1IiEvT_" } }
   f1(0);  // Expected to have static linkage
 
-  // { dg-final { scan-assembler ".weak\[\t \]*_Z2f2IiEvT_" } }
+  // { dg-final { scan-assembler ".weak(_definition)?\[\t \]*_?_Z2f2IiEvT_" } }
   f2(0);  // Expected to have weak global linkage
 }