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
/
opt
/
ptrmem5.C
blob
639ad2831c0af596d0ae5636b6af1b5aef01f5b1
1
// PR tree-opt/18904
2
// { dg-do compile }
3
// { dg-options "-O3" }
4
5
struct Data;
6
struct Wrapper {
7
Data* D;
8
};
9
struct Data {
10
int X;
11
void init(Wrapper&);
12
};
13
void Data::init( Wrapper &w ) {
14
int Data::* res = &Data::X;
15
w.D = this;
16
for( int i = 0; i < 4; i++ )
17
(w.D->*res) = 0;
18
}
19