From 36c49e3f258dced101949edabd72e9bc3f1dedc4 Mon Sep 17 00:00:00 2001 From: dim Date: Fri, 17 Sep 2010 15:54:40 +0000 Subject: Vendor import of clang r114020 (from the release_28 branch): http://llvm.org/svn/llvm-project/cfe/branches/release_28@114020 Approved by: rpaulo (mentor) --- test/SemaTemplate/current-instantiation.cpp | 35 +++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'test/SemaTemplate/current-instantiation.cpp') diff --git a/test/SemaTemplate/current-instantiation.cpp b/test/SemaTemplate/current-instantiation.cpp index c631dd7..8caac93 100644 --- a/test/SemaTemplate/current-instantiation.cpp +++ b/test/SemaTemplate/current-instantiation.cpp @@ -164,3 +164,38 @@ namespace ConstantInCurrentInstantiation { template int X::array[X::value] = { 1, 2 }; } + +namespace Expressions { + template + struct Bool { + enum anonymous_enum { value = b }; + }; + struct True : public Bool {}; + struct False : public Bool {}; + + template + struct Is_Same : public False {}; + template + struct Is_Same : public True {}; + + template + struct Enable_If {}; + template + struct Enable_If { + typedef T type; + }; + + template + class Class { + public: + template + typename Enable_If::value, void>::type + foo(); + }; + + + template + template + typename Enable_If >::value, void>::type + Class::foo() {} +} -- cgit v1.1