summaryrefslogtreecommitdiffstats
path: root/clang/test/Lexer/has_feature_cxx0x.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-11-01 01:23:44 +0000
committerDouglas Gregor <dgregor@apple.com>2011-11-01 01:23:44 +0000
commita7efb88baa5e6f6f60677b454d3c3d04a0f5f7e8 (patch)
tree924baa8f5a4b7c017bab284f309dc2519cab93b2 /clang/test/Lexer/has_feature_cxx0x.cpp
parent3c469769a25a0e1dba220fcc65086575bd1e9472 (diff)
downloadbcm5719-llvm-a7efb88baa5e6f6f60677b454d3c3d04a0f5f7e8.tar.gz
bcm5719-llvm-a7efb88baa5e6f6f60677b454d3c3d04a0f5f7e8.zip
Add __has_feature(cxx_raw_string_literals) and
__has_feature(cxx_unicode_literals), from Michel Morin! llvm-svn: 143412
Diffstat (limited to 'clang/test/Lexer/has_feature_cxx0x.cpp')
-rw-r--r--clang/test/Lexer/has_feature_cxx0x.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/clang/test/Lexer/has_feature_cxx0x.cpp b/clang/test/Lexer/has_feature_cxx0x.cpp
index eff9cfb892f..a22cf64c205 100644
--- a/clang/test/Lexer/has_feature_cxx0x.cpp
+++ b/clang/test/Lexer/has_feature_cxx0x.cpp
@@ -190,3 +190,21 @@ int no_alignas();
// CHECK-0X: has_alignas
// CHECK-NO-0X: no_alignas
+
+#if __has_feature(cxx_raw_string_literals)
+int has_raw_string_literals();
+#else
+int no_raw_string_literals();
+#endif
+
+// CHECK-0X: has_raw_string_literals
+// CHECK-NO-0X: no_raw_string_literals
+
+#if __has_feature(cxx_unicode_literals)
+int has_unicode_literals();
+#else
+int no_unicode_literals();
+#endif
+
+// CHECK-0X: has_unicode_literals
+// CHECK-NO-0X: no_unicode_literals
OpenPOWER on IntegriCloud