From 53992adde3eda3ccf9da63bc7e45673f043de18f Mon Sep 17 00:00:00 2001 From: rdivacky Date: Thu, 27 May 2010 15:17:06 +0000 Subject: Update clang to r104832. --- test/SemaTemplate/partial-spec-instantiate.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'test/SemaTemplate/partial-spec-instantiate.cpp') diff --git a/test/SemaTemplate/partial-spec-instantiate.cpp b/test/SemaTemplate/partial-spec-instantiate.cpp index 3156892..68b4964 100644 --- a/test/SemaTemplate/partial-spec-instantiate.cpp +++ b/test/SemaTemplate/partial-spec-instantiate.cpp @@ -18,3 +18,23 @@ struct X2 { }; void a(char *a, char *b) {X2::f();} + +namespace WonkyAccess { + template + struct X { + int m; + }; + + template + class Y; + + template + struct Y : X { }; + + template<> + struct Y : X { }; + + int f(Y y, Y y2) { + return y.m + y2.m; + } +} -- cgit v1.1