blob: 521edf66f24cfb47d5bb34d4cb9777c9c501250c [file] [log] [blame]
Daniel Dunbard7d5f022009-03-24 02:24:46 +00001// RUN: clang-cc -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}