summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/explicit8.C
blob: 3a75aa0dbb56c72d843801765cf9c2b8eb208e41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do assemble  }
// GROUPS passed templates
template <class T, class U>
void foo(T t, U u);

template <class U>
void foo(double, U) {}

void baz()
{
  foo<const char*>(3.0, "abc");
  foo<const char*, double>("abc", 3.0);
}