summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/pr79764.C
blob: 293aa33769309eb4fef1098cd06c5acb1cda3ff0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile { target { { i?86-*-* x86_64-*-* } && { ! x32 } } } } */
/* { dg-options "-fcheck-pointer-bounds -mmpx" } */

typedef float __m256 __attribute__ (( __vector_size__(32), __may_alias__ ));
struct A {
  __m256 ymm;
  const float &f() const;
};

const float &A::f() const {
  return ymm[1];
}