Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
ext
/
attribute-may-alias-1.C
blob: 24d2aab7615a9b7321dec0b8664e3dde6d8ba404 [
file
] [
log
] [
blame
]
// PR c++/53421
template
<
class
T
>
struct
Y
:
T
{
}
__attribute__
((
__may_alias__
));
struct
X
{
operator
Y
<
X
>&
()
{
return
*
static_cast
<
Y
<
X
>*
>(
this
);
}
};
int
main
()
{
&
X
::
operator
Y
<
X
>&;
}