Ejemplo n.º 1
0
 void f() {
   S<int> a;
   a.f(); // expected-note{{in instantiation of member function 'PR11630::S<int>::f' requested here}}
   S2<1> b;
   b.f();
   S2<2> b2;
   b2.f(); // expected-note{{in instantiation of member function 'PR11630::S2<2>::f' requested here}}
 }
Ejemplo n.º 2
0
void test3(S2 s2) {
  s2->f();
  X foo;
}