PR target/84272
[official-gcc.git] / gcc / testsuite / g++.dg / opt / pr84272.C
blobad4b8a29cd7d0ae8d756f3ecac1428b3bb7ae40b
1 // PR target/84272
2 // { dg-do compile }
3 // { dg-options "-O2" }
4 // { dg-additional-options "-march=armv8-a -mtune=cortex-a57" { target aarch64-*-* } }
6 struct A
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   }
18 void
19 foo ()
21   A g[1];
22   A h (0, 0, h * g[2]);