2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / lto / 20080829_0.C
blob0890cf66d3bec5be9e176c94fb7126015459bdee
1 // { dg-lto-do assemble }
3 /* The replacement of cos+sin with __builtin_cexpi done by
4    pass_cse_sincos was using a builtin for which we had no attributes.
5    This was causing the operand scanner to materialize a VDEF at the
6    builtin call-site which was not marked for renaming, thus tripping
7    up the SSA verifier.  */
8 extern "C" { extern double cos (double); extern double sin (double); }
9 double func(double &in) { return cos(in) + sin(in); }