PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / opt / pr55281.C
blob7076a19c836b35cee4c8d5e814dca25f6538993b
1 // PR tree-optimization/55281
2 // { dg-do compile }
3 // { dg-options "-Ofast" }
5 typedef float VF __attribute__((vector_size (16)));
7 VF x;
9 void
10 foo (void)
12   VF a, b, c;
13   a = (VF) { 1.0, 2.0, 3.0, 4.0 };
14   b = (VF) { 5.0, 6.0, 7.0, 8.0 };
15   c = (VF) { 0.0, 0.0, 0.0, 0.0 };
16   x = c == ((VF) { 0.0, 0.0, 0.0, 0.0 }) ? a : b;