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 | 0e3b73c5cf0bf89bb96412d1d88e54bf285d36a0 (patch) | |
tree | f5692c106ca647f3ccb870167fe50124130b1616 /test/Lexer | |
parent | 99849dba66e7a9b20c9a908bdfc3a8815064c369 (diff) |
[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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@270580 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Lexer')
-rw-r--r-- | test/Lexer/has_feature_type_traits.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/Lexer/has_feature_type_traits.cpp b/test/Lexer/has_feature_type_traits.cpp index 6636e7b396..743d2e24ab 100644 --- a/test/Lexer/has_feature_type_traits.cpp +++ b/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 |