diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2011-09-04 18:14:28 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2011-09-04 18:14:28 +0000 |
commit | e9c4e84f8ea7a8245b1cbb44e158cf0b8d29eb28 (patch) | |
tree | ff41d2a78044b2de8fc64426eb322c1e13eb5d3f /clang/test/Lexer/has_feature_cxx0x.cpp | |
parent | c92151516f4630a2cabcb9b8e5edbd565e16a219 (diff) | |
download | bcm5719-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.cpp | 9 |
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 |