+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.
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
}