summaryrefslogtreecommitdiffstats
path: root/clang/test/Lexer/has_feature_cxx0x.cpp
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2011-09-04 18:14:28 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2011-09-04 18:14:28 +0000
commite9c4e84f8ea7a8245b1cbb44e158cf0b8d29eb28 (patch)
treeff41d2a78044b2de8fc64426eb322c1e13eb5d3f /clang/test/Lexer/has_feature_cxx0x.cpp
parentc92151516f4630a2cabcb9b8e5edbd565e16a219 (diff)
downloadbcm5719-llvm-e9c4e84f8ea7a8245b1cbb44e158cf0b8d29eb28.tar.gz
bcm5719-llvm-e9c4e84f8ea7a8245b1cbb44e158cf0b8d29eb28.zip
Add test case for defaulted copy and move structure validation.
Fix bug this uncovered. Address minor comments from Doug. Enable cxx_implicit_moves feature. llvm-svn: 139101
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 ca5f868d9b0..76254303848 100644
--- a/clang/test/Lexer/has_feature_cxx0x.cpp
+++ b/clang/test/Lexer/has_feature_cxx0x.cpp
@@ -164,3 +164,12 @@ int no_alias_templates();
// CHECK-0X: has_alias_templates
// CHECK-NO-0X: no_alias_templates
+
+#if __has_feature(cxx_implicit_moves)
+int has_implicit_moves();
+#else
+int no_implicit_moves();
+#endif
+
+// CHECK-0X: has_implicit_moves
+// CHECK-NO-0X: no_implicit_moves
OpenPOWER on IntegriCloud