Merged r158704 through r158906 into branch.
[official-gcc.git] / gcc / testsuite / g++.dg / template / instantiate11.C
blob3598d5890bf862c068b4011cfccaf597b99be82c
1 // PR c++/42608
2 // { dg-do compile }
4 template <class U, class V>
5 struct A;
7 template <class V>
8 struct A<int, V>
10   void f ();
13 template struct A<int, int>;
15 int
16 main ()
18   A<int, int> a;
19   a.f ();
20   return 0;
23 // Make sure we get undefined reference error if
24 // A<int, int>::f () isn't instantiated elsewhere.
25 // { dg-final { scan-assembler-not "weak\[\n\t\]*_ZN1AIiiE1fEv" } }