blob: 0803c9e632b1a2dd24cf07a3066d5bbb9326efdc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// PR c++/15471
// { dg-do run }
struct myclass {
unsigned a;
union {
unsigned x;
};
};
int main () {
myclass foo;
unsigned myclass::* member = &myclass::x;
if (&(foo.*member) != &foo.x)
return 1;
}
|