Revision 39fb45484996f9d71b6551239dbf55eaaaf8db1f authored by Theresa Foley on 17 May 2022, 17:56:36 UTC, committed by GitHub on 17 May 2022, 17:56:36 UTC
Checking in more in-progress proposals in the hopes of sparking discussion and/or guiding future implementation work.
1 parent 5a3aa61
float-literal.slang
//DIAGNOSTIC_TEST:SIMPLE:
float doSomething(float a)
{
// Too large with become +inf
a += 5e+40;
// Will be narrowed to 0
a += 9e-50;
double b = 0.0f;
// These shouldn't produce warning as they can fit
b += 5e+40l;
b += 9e-50l;
// Cos these don't have l suffix they should also produce warnings
// and produce -inf and 0
b += -5e+40;
b += -9e-50;
return a + float(b);
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...