3 // { dg-options "-fsanitize=null" }
4 // { dg-output ":25:\[^\n\r]*reference binding to null pointer of type 'struct C'" }
8 struct C : A, B { int c; };
10 __attribute__((noipa)) C *
13 return static_cast<C *>(b);
16 __attribute__((noipa)) C *
19 return &static_cast<C &>(*b);
22 __attribute__((noipa)) C *
25 return &static_cast<C &>(*b);
32 if (foo (static_cast<B *> (&c)) != &c)
36 if (bar (static_cast<B *> (&c)) != &c)