blob: dae6b18f32c28f51df09addc131f72a69c5e3540 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Douglas Gregor1a873ae2009-03-09 23:48:53 +00002
3template<typename T> struct A { };
4
5template<typename T, typename U = A<T*> >
6 struct B : U { };
7
8template<>
9struct A<int*> {
10 void foo();
11};
12
13template<>
14struct A<float*> {
15 void bar();
16};
17
18void test(B<int> *b1, B<float> *b2) {
19 b1->foo();
20 b2->bar();
21}