Lines Matching defs:sptr
335 constexpr S* sptr = &s;
336 constexpr bool dyncast = sptr == dynamic_cast<S*>(sptr); // cxx11-error {{constant expression}} cxx11-note {{dynamic_cast}}
340 int a : dynamic_cast<S*>(sptr) == dynamic_cast<S*>(sptr); // \
343 int b : reinterpret_cast<S*>(sptr) == reinterpret_cast<S*>(sptr); // \
346 int c : (S*)(long)(sptr) == (S*)(long)(sptr); // \
352 int e : (Str*)(sptr) == (Str*)(sptr); // \
355 int f : &(U&)(*sptr) == &(U&)(*sptr); // \
358 int g : (S*)(void*)(sptr) == sptr; // \
1037 constexpr const S *sptr = &sobj;
1040 static_assert(sptr->f(), ""); // expected-error {{constant expression}} \
1041 expected-note {{in call to 'sptr->f()'}}