Commit 5c7060d3 by Hans-Peter Nilsson Committed by Hans-Peter Nilsson

instantiate1.C, [...]: Tweak match patterns.

	* g++.dg/ext/instantiate1.C, g++.dg/ext/instantiate2.C,
	g++.dg/ext/instantiate3.C: Tweak match patterns.

From-SVN: r51657
parent 820ecf56
2002-03-31 Hans-Peter Nilsson <hp@bitrange.com> 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
* g++.dg/ext/instantiate1.C, g++.dg/ext/instantiate2.C,
g++.dg/ext/instantiate3.C: Tweak match patterns.
* g++.old-deja/g++.pt/static11.C: Skip on mmix-knuth-mmixware. * g++.old-deja/g++.pt/static11.C: Skip on mmix-knuth-mmixware.
* g++.dg/other/static11.C: Copy g++.old-deja/g++.pt/static11.C for * g++.dg/other/static11.C: Copy g++.old-deja/g++.pt/static11.C for
-da test. -da test.
......
...@@ -11,14 +11,14 @@ template <class T> struct A { ...@@ -11,14 +11,14 @@ template <class T> struct A {
template <class T> void A<T>::f () { } template <class T> void A<T>::f () { }
extern template struct A<int>; extern template struct A<int>;
// { dg-final { scan-assembler-not "\n_?_Z1fIiEvT_(:|\n)" } } // { dg-final { scan-assembler-not "\n_?_Z1fIiEvT_(:|\n|\t)" } }
void test_f_int () { f(42); } void test_f_int () { f(42); }
// { dg-final { scan-assembler-not "\n_?_ZN1AIiE1fEv(:|\n)" } } // { dg-final { scan-assembler-not "\n_?_ZN1AIiE1fEv(:|\n|\t)" } }
void test_A_int_f () { A<int> a; a.f (); } void test_A_int_f () { A<int> a; a.f (); }
// { dg-final { scan-assembler "\n_?_Z1fIdEvT_(:|\n)" } } // { dg-final { scan-assembler "\n_?_Z1fIdEvT_(:|\n|\t)" } }
void test_f_double () { f (2.0); } void test_f_double () { f (2.0); }
// { dg-final { scan-assembler "\n_?_ZN1AIdE1fEv(:|\n)" } } // { dg-final { scan-assembler "\n_?_ZN1AIdE1fEv(:|\n|\t)" } }
void test_A_double_f () { A<double> b; b.f (); } void test_A_double_f () { A<double> b; b.f (); }
...@@ -8,8 +8,8 @@ template <class T> struct A { ...@@ -8,8 +8,8 @@ template <class T> struct A {
template <class T> T A<T>::t = 0; template <class T> T A<T>::t = 0;
static template struct A<int>; static template struct A<int>;
// { dg-final { scan-assembler "\n_?_ZN1AIiE1tE(:|\n)" } } // { dg-final { scan-assembler "\n_?_ZN1AIiE1tE(:|\n|\t)" } }
void test_int() { A<int>::t = 42; } void test_int() { A<int>::t = 42; }
// { dg-final { scan-assembler-not "\n_?_ZN1AIcE1tE(:|\n)" } } // { dg-final { scan-assembler-not "\n_?_ZN1AIcE1tE(:|\n|\t)" } }
void test_char() { A<char>::t = 42; } void test_char() { A<char>::t = 42; }
...@@ -7,8 +7,8 @@ template <class T> struct A { ...@@ -7,8 +7,8 @@ template <class T> struct A {
}; };
inline template struct A<int>; inline template struct A<int>;
// { dg-final { scan-assembler "\n_?_ZTV1AIiE(:|\n)" } } // { dg-final { scan-assembler "\n_?_ZTV1AIiE(:|\n|\t)" } }
A<int> a; A<int> a;
// { dg-final { scan-assembler-not "\n_?_ZTV1AIcE(:|\n)" } } // { dg-final { scan-assembler-not "\n_?_ZTV1AIcE(:|\n|\t)" } }
A<char> b; A<char> b;
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