Debian Codegraph @

gcc/testsuite/g++.dg/opt/pr84272.C

raw
1 // PR target/84272
2 // { dg-do compile }
3 // { dg-options "-O2" }
4 // { dg-additional-options "-march=armv8-a -mtune=cortex-a57" { target aarch64-*-* } }
5
6 struct A
7 {
8 float b, c;
9 A ();
10 A (float, float, float);
11 float operator * (A)
12 {
13 float d = b * b + c * c;
14 return d;
15 }
16 };
17
18 void
19 foo ()
20 {
21 A g[1];
22 A h (0, 0, h * g[2]);
23 }