freebsd-dev/test/SemaTemplate/partial-spec-instantiate.cpp
2009-10-14 18:03:49 +00:00

21 lines
286 B
C++

// RUN: clang-cc -fsyntax-only %s
// PR4607
template <class T> struct X {};
template <> struct X<char>
{
static char* g();
};
template <class T> struct X2 {};
template <class U>
struct X2<U*> {
static void f() {
X<U>::g();
}
};
void a(char *a, char *b) {X2<char*>::f();}