Commit 508515b0 by Dominique d'Humieres Committed by Uros Bizjak

re PR target/35119 (FAIL: g++.dg/template/spec35.C scan-assembler)

	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.

From-SVN: r132344
parent 67baf3ca
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.
......@@ -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
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment