forked from OSchip/llvm-project
Add a test case that goes with the last commit
llvm-svn: 66510
This commit is contained in:
parent
c40290e452
commit
d9c90a7317
|
@ -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();
|
||||
}
|
Loading…
Reference in New Issue