summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp49.C
blob: 381510b15718ba6b2dee24f40884789ce7667883 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do assemble  }
// GROUPS passed templates membertemplates
template <class X>
struct S
{
  template <class T>
  void f(T t1, T t = T())
  {}
};


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