PR c++/85553
[official-gcc.git] / gcc / testsuite / g++.dg / ext / attribute-may-alias-1.C
blob24d2aab7615a9b7321dec0b8664e3dde6d8ba404
1 // PR c++/53421
3 template< class T >
4 struct Y : T
5 { } __attribute__((__may_alias__));
7 struct X
9   operator Y<X>& () { return *static_cast< Y<X>* >(this); }
12 int main()
14   &X::operator Y<X>&;