1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/* { dg-do compile } */ /* { dg-options "-O2 -fcheck-pointer-bounds -mmpx -march=corei7-avx" } */ struct c1 { c1 (const c1 &other) : p (other.p) { }; int *p; }; struct c2 : public c1 { }; c1 test (c2 a) { return a; }