gcc/testsuite/g++.dg/tree-ssa/pr106936.C
raw| 1 | // { dg-do compile } */ |
| 2 | // { dg-options "-O2 -fno-tree-ccp -fno-tree-forwprop -fno-tree-fre" } |
| 3 | |
| 4 | namespace testPointerToMemberMiscCasts2 { |
| 5 | struct B { |
| 6 | int f; |
| 7 | }; |
| 8 | struct L : public B { }; |
| 9 | struct R : public B { }; |
| 10 | struct D : public L, R { }; |
| 11 | int B::* pb = &B::f; |
| 12 | int R::* pr = pb; |
| 13 | int D::* pdr = pr; |
| 14 | } |