Douglas Gregor | afdf137 | 2011-02-03 21:57:35 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -E %s -o - | FileCheck %s |
| 2 | |
| 3 | #if __has_feature(has_nothrow_assign) |
| 4 | int has_nothrow_assign(); |
| 5 | #endif |
| 6 | // CHECK: int has_nothrow_assign(); |
| 7 | |
| 8 | #if __has_feature(has_nothrow_copy) |
| 9 | int has_nothrow_copy(); |
| 10 | #endif |
| 11 | // CHECK: int has_nothrow_copy(); |
| 12 | |
| 13 | #if __has_feature(has_nothrow_constructor) |
| 14 | int has_nothrow_constructor(); |
| 15 | #endif |
| 16 | // CHECK: int has_nothrow_constructor(); |
| 17 | |
| 18 | #if __has_feature(has_trivial_assign) |
| 19 | int has_trivial_assign(); |
| 20 | #endif |
| 21 | // CHECK: int has_trivial_assign(); |
| 22 | |
| 23 | #if __has_feature(has_trivial_copy) |
| 24 | int has_trivial_copy(); |
| 25 | #endif |
| 26 | // CHECK: int has_trivial_copy(); |
| 27 | |
| 28 | #if __has_feature(has_trivial_constructor) |
| 29 | int has_trivial_constructor(); |
| 30 | #endif |
| 31 | // CHECK: int has_trivial_constructor(); |
| 32 | |
| 33 | #if __has_feature(has_trivial_destructor) |
| 34 | int has_trivial_destructor(); |
| 35 | #endif |
| 36 | // CHECK: int has_trivial_destructor(); |
| 37 | |
| 38 | #if __has_feature(has_virtual_destructor) |
| 39 | int has_virtual_destructor(); |
| 40 | #endif |
| 41 | // CHECK: int has_virtual_destructor(); |
| 42 | |
| 43 | #if __has_feature(is_abstract) |
| 44 | int is_abstract(); |
| 45 | #endif |
| 46 | // CHECK: int is_abstract(); |
| 47 | |
| 48 | #if __has_feature(is_base_of) |
| 49 | int is_base_of(); |
| 50 | #endif |
| 51 | // CHECK: int is_base_of(); |
| 52 | |
| 53 | #if __has_feature(is_class) |
| 54 | int is_class(); |
| 55 | #endif |
| 56 | // CHECK: int is_class(); |
| 57 | |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 58 | #if __has_feature(is_constructible) |
| 59 | int is_constructible(); |
| 60 | #endif |
| 61 | // CHECK: int is_constructible(); |
| 62 | |
Douglas Gregor | afdf137 | 2011-02-03 21:57:35 +0000 | [diff] [blame] | 63 | #if __has_feature(is_convertible_to) |
| 64 | int is_convertible_to(); |
| 65 | #endif |
| 66 | // CHECK: int is_convertible_to(); |
| 67 | |
| 68 | #if __has_feature(is_empty) |
| 69 | int is_empty(); |
| 70 | #endif |
| 71 | // CHECK: int is_empty(); |
| 72 | |
| 73 | #if __has_feature(is_enum) |
| 74 | int is_enum(); |
| 75 | #endif |
| 76 | // CHECK: int is_enum(); |
| 77 | |
Douglas Gregor | 5e9392b | 2011-12-03 18:14:24 +0000 | [diff] [blame] | 78 | #if __has_feature(is_final) |
| 79 | int is_final(); |
| 80 | #endif |
| 81 | // CHECK: int is_final(); |
| 82 | |
Douglas Gregor | afdf137 | 2011-02-03 21:57:35 +0000 | [diff] [blame] | 83 | #if __has_feature(is_pod) |
| 84 | int is_pod(); |
| 85 | #endif |
| 86 | // CHECK: int is_pod(); |
| 87 | |
| 88 | #if __has_feature(is_polymorphic) |
| 89 | int is_polymorphic(); |
| 90 | #endif |
| 91 | // CHECK: int is_polymorphic(); |
| 92 | |
| 93 | #if __has_feature(is_union) |
| 94 | int is_union(); |
| 95 | #endif |
| 96 | // CHECK: int is_union(); |
| 97 | |
| 98 | #if __has_feature(is_literal) |
| 99 | int is_literal(); |
| 100 | #endif |
| 101 | // CHECK: int is_literal(); |
Howard Hinnant | a55e68b | 2011-05-12 19:52:14 +0000 | [diff] [blame] | 102 | |
| 103 | #if __has_feature(is_standard_layout) |
| 104 | int is_standard_layout(); |
| 105 | #endif |
| 106 | // CHECK: int is_standard_layout(); |
Sean Hunt | feb375d | 2011-05-13 00:31:07 +0000 | [diff] [blame] | 107 | |
| 108 | #if __has_feature(is_trivially_copyable) |
| 109 | int is_trivially_copyable(); |
| 110 | #endif |
| 111 | // CHECK: int is_trivially_copyable(); |
Sean Hunt | 858a325 | 2011-07-18 17:08:00 +0000 | [diff] [blame] | 112 | |
| 113 | #if __has_feature(underlying_type) |
| 114 | int underlying_type(); |
| 115 | #endif |
| 116 | // CHECK: int underlying_type(); |