Debian Codegraph @

gcc/testsuite/g++.dg/torture/pr120119-1.C

raw
1 // { dg-do compile }
2 // { dg-additional-options "-mcpu=cortex-a57" { target aarch64*-*-* } }
3
4 // PR target/120119
5
6 struct a {
7 float operator()(int b, int c) { return d[c * 4 + b]; }
8 float *d;
9 };
10 float e(float *);
11 auto f(a b) {
12 float g[]{b(1, 1), b(2, 1), b(3, 1), b(1, 2), b(2, 2), b(3, 2), b(1, 3),
13 b(2, 3), b(3, 3), b(3, 2), b(1, 3), b(2, 3), b(3, 3)};
14 return b.d[0] * e(g);
15 }