]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.old-deja/g++.pt/explicit8.C
extern2.cc (foo): Declare as of type cost char*.
[thirdparty/gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / explicit8.C
1 // { dg-do assemble }
2 // GROUPS passed templates
3 template <class T, class U>
4 void foo(T t, U u);
5
6 template <class U>
7 void foo(double, U) {}
8
9 void baz()
10 {
11 foo<const char*>(3.0, "abc");
12 foo<const char*, double>("abc", 3.0);
13 }