diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2013-07-04 00:10:01 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2013-07-04 00:10:01 +0000 |
commit | 5b2ef2b1a6d6d29c590c8fee1fac0d49068d9b41 (patch) | |
tree | 22ba0d875869da7d383d4edb9b4d3c5a3f860bfa /libcxx/test/utilities/meta/meta.trans/meta.trans.other/enable_if2.fail.cpp | |
parent | f33ec531fa59f8ad1ae9e90c3df9b29b8cccda4d (diff) | |
download | bcm5719-llvm-5b2ef2b1a6d6d29c590c8fee1fac0d49068d9b41.tar.gz bcm5719-llvm-5b2ef2b1a6d6d29c590c8fee1fac0d49068d9b41.zip |
Patch for N3655 (Transformation type traits) with Howard's additions
llvm-svn: 185597
Diffstat (limited to 'libcxx/test/utilities/meta/meta.trans/meta.trans.other/enable_if2.fail.cpp')
-rw-r--r-- | libcxx/test/utilities/meta/meta.trans/meta.trans.other/enable_if2.fail.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
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 <type_traits> + +int main() +{ +#if _LIBCPP_STD_VER > 11 + typedef std::enable_if_t<false> A; +#else + static_assert ( false, "" ); +#endif +} |