Lines Matching +full:use +full:- +full:pty
1 //===---------- llvm/unittest/Support/Casting.cpp - Casting tests ---------===//
8 //===----------------------------------------------------------------------===//
79 // Test the peculiar behavior of Use in simplify_type.
80 static_assert(std::is_same<simplify_type<Use>::SimpleType, Value *>::value,
81 "Use doesn't simplify correctly!");
82 static_assert(std::is_same<simplify_type<Use *>::SimpleType, Value *>::value,
83 "Use doesn't simplify correctly!");
246 static bool classof(const Base *B) { return B->IsDerived; } in classof()
249 class PTy { class
252 PTy(Base *B) : B(B) {} in PTy() function in __anon03e426f90311::pointer_wrappers::PTy
262 template <> struct simplify_type<pointer_wrappers::PTy> {
264 static SimpleType getSimplifiedValue(pointer_wrappers::PTy &P) { in getSimplifiedValue()
268 template <> struct simplify_type<const pointer_wrappers::PTy> {
270 static SimpleType getSimplifiedValue(const pointer_wrappers::PTy &P) { in getSimplifiedValue()
285 pointer_wrappers::PTy MN(nullptr);
286 pointer_wrappers::PTy MB(&B);
287 pointer_wrappers::PTy MD(&D);
290 const pointer_wrappers::PTy CN(nullptr);
291 const pointer_wrappers::PTy CB(&B);
292 const pointer_wrappers::PTy CD(&D);