From ecb7e5c8afe929ee38155db94de6b084ec32a645 Mon Sep 17 00:00:00 2001 From: Roman Divacky Date: Tue, 16 Feb 2010 09:31:36 +0000 Subject: Update clang to r96341. --- test/SemaTemplate/template-id-expr.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'test/SemaTemplate/template-id-expr.cpp') diff --git a/test/SemaTemplate/template-id-expr.cpp b/test/SemaTemplate/template-id-expr.cpp index 70a1062c2287..b3f41be7bfad 100644 --- a/test/SemaTemplate/template-id-expr.cpp +++ b/test/SemaTemplate/template-id-expr.cpp @@ -27,3 +27,20 @@ struct X0 { void test_X0_int(X0 xi, float f) { xi.f2(f); } + +// Not template-id expressions, but they almost look like it. +template +struct Y { + Y(const F&); +}; + +template +struct X { + X(int, int); + void f() { + Y >(X(0, 0)); + Y >(::X(0, 0)); + } +}; + +template struct X<3>; -- cgit v1.3