summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp7.C
blob: 02b1fc6bdad7da2a88450915253d541bf04e46e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// { dg-do link  }
// GROUPS passed templates membertemplates
extern "C" int printf(const char*, ...);

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


template <class T, class U>
S::S(T t1, U u1, T t2)
{
  printf("Hello, world.\n");
}


int main()
{
  S s1(3, "abc", 3);
  S s2('a', s1, 'a');
}