Searched refs:ConvertibleTo (Results 1 – 3 of 3) sorted by relevance
/external/libcxx/test/support/ |
D | poisoned_hash_helper.hpp | 112 struct ConvertibleTo { struct 149 using CKey = ConvertibleTo<Key>; in test_hash_enabled() 161 static_assert(can_hash<Hash(ConvertibleTo<Key>&)>(), ""); in test_hash_enabled() 162 static_assert(can_hash<Hash(ConvertibleTo<Key> const&)>(), ""); in test_hash_enabled() 163 static_assert(can_hash<Hash(ConvertibleTo<Key> &&)>(), ""); in test_hash_enabled() 164 static_assert(can_hash<Hash(ConvertibleTo<Key> const&&)>(), ""); in test_hash_enabled() 189 using CKey = ConvertibleTo<Key>; in test_hash_disabled() 201 static_assert(!can_hash<Hash(ConvertibleTo<Key>&)>(), ""); in test_hash_disabled() 202 static_assert(!can_hash<Hash(ConvertibleTo<Key> const&)>(), ""); in test_hash_disabled() 203 static_assert(!can_hash<Hash(ConvertibleTo<Key> &&)>(), ""); in test_hash_disabled() [all …]
|
/external/clang/test/SemaObjCXX/ |
D | objc-container-subscripting.mm | 48 struct ConvertibleTo { struct 57 template<typename T> ConvertibleTo<T> makeConvertible(); argument 60 ConvertibleTo<id> x; 61 ConvertibleTo<id> get(); 64 NSMutableArray *test_array_convertibility(ConvertibleTo<NSMutableArray*> toArray, 65 ConvertibleTo<id> toId, 66 ConvertibleTo<int (^)(int)> toBlock, 67 ConvertibleTo<int> toInt, 81 id test_dict_convertibility(ConvertibleTo<NSMutableDictionary*> toDict, 82 ConvertibleTo<id> toId, [all …]
|
D | literals.mm | 54 struct ConvertibleTo { struct 69 template<typename T> ConvertibleTo<T> makeConvertible(); argument 72 ConvertibleTo<id> x; 73 ConvertibleTo<id> get(); 82 void test_convertibility(ConvertibleTo<NSArray*> toArray, 83 ConvertibleTo<id> toId, 84 ConvertibleTo<int (^)(int)> toBlock, 85 ConvertibleTo<int> toInt, 91 …toInt // expected-error{{collection element of type 'ConvertibleTo<int>' is not an Objective-C obj… 97 …makeConvertible<id>, // expected-error{{collection element of type 'ConvertibleTo<id> ()' is not a… [all …]
|