repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
expr
/
ptrmem4.C
blob
0803c9e632b1a2dd24cf07a3066d5bbb9326efdc
1
// PR c++/15471
2
// { dg-do run }
3
4
struct myclass {
5
unsigned a;
6
union {
7
unsigned x;
8
};
9
};
10
11
int main () {
12
myclass foo;
13
unsigned myclass::* member = &myclass::x;
14
if (&(foo.*member) != &foo.x)
15
return 1;
16
}