PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / opt / pr51396.C
blob39ebe088788cd7c1dc499d34da8ba611db074f2a
1 // PR tree-optimization/51396
2 // { dg-do compile }
3 // { dg-options "-O2 -fnon-call-exceptions" }
4 // { dg-additional-options "-mfma" { target i?86-*-* x86_64-*-* } }
6 double baz (double) throw ();
8 struct C
10   C (double d = 0.0) : c (d) {}
11   double c;
14 static inline void
15 foo (double x, const C &y)
17   x ? (y.c * baz (x)) : (C (), y);
20 void
21 bar (double x, C y)
23   foo (x, y);