summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp36.C
blob: ab035a700afbf12cf7a95612f66c321bc9a946d2 (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 X>
struct R
{
};


template <class T>
struct S
{
  template <class U>
  S(R<U> r);
};


void foo()
{
  R<int> r;
  S<char*> s(r);
}