repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
attribute-may-alias-2.C
blob
d7e1fdfdd4a85c3f978777d27237277200b461f3
1
// PR c++/53421
2
3
template< class T >
4
struct Y : T
5
{ } __attribute__((__may_alias__));
6
7
struct X
8
{
9
operator Y<X>& ();
10
};
11
12
Y<X> y = Y<X>();
13
X::operator Y<X>& () { return *static_cast< Y<X>* >(this); }