aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.pt/memtemp40.C
blob: 40ae3e6ea28a2e84a376e5f5254ce99c72b441e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// { dg-do assemble  }
// GROUPS passed templates membertemplates
template <class T>
struct R
{
  template <class U>
  void g(U u) {}
};

template <class T>
struct S
{
  template <class U>
  void f(U u) { R<T> r; r.g(u); }
};

void foo()
{
  S<int> si;
  si.f("abc");
}