3 // { dg-options "-Wnonnull-compare" }
7 void foo () const { delete this; } // { dg-bogus "nonnull argument" }
8 template <typename> friend struct A;
10 template <typename T> struct A {
11 static void bar (T *x) { x->foo (); }
13 template <typename T> struct B {
15 void baz () { A<T>::bar (&b); }
18 class E : public D { ~E (); };