blob: 6ca5b2d18c9abeee1610176219196cc66e4749e5 [file] [log] [blame]
// PR sanitizer/63813
// { dg-do compile }
// { dg-options "-fsanitize=undefined -O1" }
struct A {};
struct B { long foo () const; A &bar () const; };
A &
B::bar () const
{
return *reinterpret_cast <A *> (foo ());
}