3 // { dg-options "-fsanitize=vptr -Wnonnull-compare" }
5 struct S { virtual ~S (); };
6 struct T : S { T *bar (); T *baz (); T *q; bool b; };
11 return static_cast<T*>(reinterpret_cast<S*>(this)); // { dg-bogus "nonnull argument" }
17 return static_cast<T*>(reinterpret_cast<S*>(b ? this : q)); // { dg-bogus "nonnull argument" }