From 5b2ef2b1a6d6d29c590c8fee1fac0d49068d9b41 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Thu, 4 Jul 2013 00:10:01 +0000 Subject: Patch for N3655 (Transformation type traits) with Howard's additions llvm-svn: 185597 --- .../meta.trans.other/enable_if2.fail.cpp | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 libcxx/test/utilities/meta/meta.trans/meta.trans.other/enable_if2.fail.cpp (limited to 'libcxx/test/utilities/meta/meta.trans/meta.trans.other/enable_if2.fail.cpp') diff --git a/libcxx/test/utilities/meta/meta.trans/meta.trans.other/enable_if2.fail.cpp b/libcxx/test/utilities/meta/meta.trans/meta.trans.other/enable_if2.fail.cpp new file mode 100644 index 00000000000..8ce894578c4 --- /dev/null +++ b/libcxx/test/utilities/meta/meta.trans/meta.trans.other/enable_if2.fail.cpp @@ -0,0 +1,23 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// type_traits + +// enable_if + +#include + +int main() +{ +#if _LIBCPP_STD_VER > 11 + typedef std::enable_if_t A; +#else + static_assert ( false, "" ); +#endif +} -- cgit v1.2.3