summaryrefslogtreecommitdiffstats
path: root/clang/test/Lexer/has_feature_cxx0x.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-07-24 17:41:31 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-07-24 17:41:31 +0000
commitc0f7b81d89e648f1ccaa5609690f20c96248e9c6 (patch)
tree0dc988303c04a98c72a980913b4e5c264dd55f86 /clang/test/Lexer/has_feature_cxx0x.cpp
parentf5f726c60d8afb9acf3ef15bf28859dccaf282be (diff)
downloadbcm5719-llvm-c0f7b81d89e648f1ccaa5609690f20c96248e9c6.tar.gz
bcm5719-llvm-c0f7b81d89e648f1ccaa5609690f20c96248e9c6.zip
Update documentation to match current C++1y feature set.
llvm-svn: 187055
Diffstat (limited to 'clang/test/Lexer/has_feature_cxx0x.cpp')
-rw-r--r--clang/test/Lexer/has_feature_cxx0x.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/clang/test/Lexer/has_feature_cxx0x.cpp b/clang/test/Lexer/has_feature_cxx0x.cpp
index 590c168768d..2dc2abe87cf 100644
--- a/clang/test/Lexer/has_feature_cxx0x.cpp
+++ b/clang/test/Lexer/has_feature_cxx0x.cpp
@@ -356,3 +356,23 @@ int no_return_type_deduction();
// CHECK-1Y: has_return_type_deduction
// CHECK-11: no_return_type_deduction
// CHECK-NO-11: no_return_type_deduction
+
+#if __has_feature(cxx_contextual_conversions)
+int has_contextual_conversions();
+#else
+int no_contextual_conversions();
+#endif
+
+// CHECK-1Y: has_contextual_conversions
+// CHECK-11: no_contextual_conversions
+// CHECK-NO-11: no_contextual_conversions
+
+#if __has_feature(cxx_relaxed_constexpr)
+int has_relaxed_constexpr();
+#else
+int no_relaxed_constexpr();
+#endif
+
+// CHECK-1Y: has_relaxed_constexpr
+// CHECK-11: no_relaxed_constexpr
+// CHECK-NO-11: no_relaxed_constexpr
OpenPOWER on IntegriCloud