summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/mpx/pr66048.cc
blob: b29cd03ed0f0724330eb7470051349e603c20f92 (plain)
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;
}