From 4c8b24812ddcd1dedaca343a6d4e76f91f398981 Mon Sep 17 00:00:00 2001 From: Roman Divacky Date: Wed, 14 Oct 2009 18:03:49 +0000 Subject: Update clang to r84119. --- test/SemaTemplate/partial-spec-instantiate.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/SemaTemplate/partial-spec-instantiate.cpp (limited to 'test/SemaTemplate/partial-spec-instantiate.cpp') diff --git a/test/SemaTemplate/partial-spec-instantiate.cpp b/test/SemaTemplate/partial-spec-instantiate.cpp new file mode 100644 index 000000000000..8d1ae238977c --- /dev/null +++ b/test/SemaTemplate/partial-spec-instantiate.cpp @@ -0,0 +1,20 @@ +// RUN: clang-cc -fsyntax-only %s + +// PR4607 +template struct X {}; + +template <> struct X +{ + static char* g(); +}; + +template struct X2 {}; + +template +struct X2 { + static void f() { + X::g(); + } +}; + +void a(char *a, char *b) {X2::f();} -- cgit v1.3