Add a test case that goes with the last commit

llvm-svn: 66510
This commit is contained in:
Douglas Gregor 2009-03-09 23:48:53 +00:00
parent c40290e452
commit d9c90a7317
1 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,21 @@
// RUN: clang -fsyntax-only -verify %s
template<typename T> struct A { };
template<typename T, typename U = A<T*> >
struct B : U { };
template<>
struct A<int*> {
void foo();
};
template<>
struct A<float*> {
void bar();
};
void test(B<int> *b1, B<float> *b2) {
b1->foo();
b2->bar();
}