summaryrefslogtreecommitdiffstats
path: root/clang/test/Lexer/has_feature_cxx0x.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2011-05-05 21:57:07 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2011-05-05 21:57:07 +0000
commit3f1b5d077b7e68c0c801a56f17b05dab96f7f992 (patch)
tree04a1b5da5699318cd42202ad10b1c94fdb6db239 /clang/test/Lexer/has_feature_cxx0x.cpp
parentbc8e3f8c45c16e272b6c0b3b93688b85988886d6 (diff)
downloadbcm5719-llvm-3f1b5d077b7e68c0c801a56f17b05dab96f7f992.tar.gz
bcm5719-llvm-3f1b5d077b7e68c0c801a56f17b05dab96f7f992.zip
Implement support for C++0x alias templates.
llvm-svn: 130953
Diffstat (limited to 'clang/test/Lexer/has_feature_cxx0x.cpp')
-rw-r--r--clang/test/Lexer/has_feature_cxx0x.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Lexer/has_feature_cxx0x.cpp b/clang/test/Lexer/has_feature_cxx0x.cpp
index 57949e30177..57354f866ec 100644
--- a/clang/test/Lexer/has_feature_cxx0x.cpp
+++ b/clang/test/Lexer/has_feature_cxx0x.cpp
@@ -155,3 +155,12 @@ int no_override_control();
// CHECK-0X: has_override_control
// CHECK-NO-0X: no_override_control
+
+#if __has_feature(cxx_alias_templates)
+int has_alias_templates();
+#else
+int no_alias_templates();
+#endif
+
+// CHECK-0X: has_alias_templates
+// CHECK-NO-0X: no_alias_templates
OpenPOWER on IntegriCloud