summaryrefslogtreecommitdiffstats
path: root/clang/test/Lexer/has_feature_cxx0x.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-11-01 01:19:34 +0000
committerDouglas Gregor <dgregor@apple.com>2011-11-01 01:19:34 +0000
commit3c469769a25a0e1dba220fcc65086575bd1e9472 (patch)
tree89da72d751ebb0bd381466c31afbd45b673cf506 /clang/test/Lexer/has_feature_cxx0x.cpp
parentd73f3ddb441b305dd41f4da608df3e899d4d9672 (diff)
downloadbcm5719-llvm-3c469769a25a0e1dba220fcc65086575bd1e9472.tar.gz
bcm5719-llvm-3c469769a25a0e1dba220fcc65086575bd1e9472.zip
Add __has_feature(cxx_defaulted_functions) for querying "defaulted
functions", from Michel Morin! llvm-svn: 143411
Diffstat (limited to 'clang/test/Lexer/has_feature_cxx0x.cpp')
-rw-r--r--clang/test/Lexer/has_feature_cxx0x.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Lexer/has_feature_cxx0x.cpp b/clang/test/Lexer/has_feature_cxx0x.cpp
index f2b4576b57e..eff9cfb892f 100644
--- a/clang/test/Lexer/has_feature_cxx0x.cpp
+++ b/clang/test/Lexer/has_feature_cxx0x.cpp
@@ -79,6 +79,14 @@ int no_deleted_functions();
// CHECK-0X: has_deleted_functions
// CHECK-NO-0X: no_deleted_functions
+#if __has_feature(cxx_defaulted_functions)
+int has_defaulted_functions();
+#else
+int no_defaulted_functions();
+#endif
+
+// CHECK-0X: has_defaulted_functions
+// CHECK-NO-0X: no_defaulted_functions
#if __has_feature(cxx_rvalue_references)
int has_rvalue_references();
OpenPOWER on IntegriCloud