diff options
| author | David Majnemer <david.majnemer@gmail.com> | 2016-05-24 16:53:13 +0000 |
|---|---|---|
| committer | David Majnemer <david.majnemer@gmail.com> | 2016-05-24 16:53:13 +0000 |
| commit | 2ffff19134b9d74a4892018309d8f59176218a72 (patch) | |
| tree | bb482559d0f384d50bb4836a38d34c2ffccfd459 /clang/test | |
| parent | 929ebf5a54801008daee01ca1e25b9daf7118b69 (diff) | |
| download | bcm5719-llvm-2ffff19134b9d74a4892018309d8f59176218a72.tar.gz bcm5719-llvm-2ffff19134b9d74a4892018309d8f59176218a72.zip | |
[Lex] Support more type-traits in __has_feature
It looks like we forgot to update the __has_feature support when we
added some of the type traits.
llvm-svn: 270580
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Lexer/has_feature_type_traits.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/clang/test/Lexer/has_feature_type_traits.cpp b/clang/test/Lexer/has_feature_type_traits.cpp index 6636e7b3963..743d2e24ab0 100644 --- a/clang/test/Lexer/has_feature_type_traits.cpp +++ b/clang/test/Lexer/has_feature_type_traits.cpp @@ -20,6 +20,16 @@ int has_trivial_assign(); #endif // CHECK: int has_trivial_assign(); +#if __has_feature(has_trivial_move_assign) +int has_trivial_move_assign(); +#endif +// CHECK: int has_trivial_move_assign(); + +#if __has_feature(has_trivial_move_constructor) +int has_trivial_move_constructor(); +#endif +// CHECK: int has_trivial_move_constructor(); + #if __has_feature(has_trivial_copy) int has_trivial_copy(); #endif @@ -105,6 +115,16 @@ int is_literal(); #endif // CHECK: int is_literal(); +#if __has_feature(is_nothrow_assignable) +int is_nothrow_assignable(); +#endif +// CHECK: int is_nothrow_assignable(); + +#if __has_feature(is_nothrow_constructible) +int is_nothrow_constructible(); +#endif +// CHECK: int is_nothrow_constructible(); + #if __has_feature(is_standard_layout) int is_standard_layout(); #endif |

