OSDN Git Service

PR c++/20669
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / overload1.C
1 // { dg-do run  }
2 template <class T> struct B { };
3
4 template <class T> struct A {
5   template <class U, class V> int operator () (U u, V v);
6   template <class U, class V> void operator () (B<U> u, B<V> v) { }
7 };
8
9 int
10 main ()
11 {
12   A<int> a;
13   B<char> b1;
14   B<short> b2;
15   a (b1, b2);
16 }