summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2010-08-31 23:28:47 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2010-08-31 23:28:47 +0000
commita93bb5b807f74a54af094a42f9240251317d83a3 (patch)
tree9a77e7460af77744710606d6f78d54bc528cc0a0 /clang/test
parent11c34a0488d9c345ef06524c3f753dfabcb93ce4 (diff)
downloadbcm5719-llvm-a93bb5b807f74a54af094a42f9240251317d83a3.tar.gz
bcm5719-llvm-a93bb5b807f74a54af094a42f9240251317d83a3.zip
Implement __has_feature(cxx_inline_namespaces)
llvm-svn: 112671
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Lexer/has_feature_cxx0x.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Lexer/has_feature_cxx0x.cpp b/clang/test/Lexer/has_feature_cxx0x.cpp
index 650e577ca72..cc2ae28c58b 100644
--- a/clang/test/Lexer/has_feature_cxx0x.cpp
+++ b/clang/test/Lexer/has_feature_cxx0x.cpp
@@ -99,3 +99,13 @@ int no_variadic_templates();
// CHECK-0X: no_variadic_templates
// CHECK-NO-0X: no_variadic_templates
+
+
+#if __has_feature(cxx_inline_namespaces)
+int inline_namespaces();
+#else
+int no_inline_namespaces();
+#endif
+
+// CHECK-0X: inline_namespaces
+// CHECK-NO-0X: inline_namespaces
OpenPOWER on IntegriCloud