1 #line 1 "tests/SkScalar.h"
2 // This checks that the whitelist accounts for #line directives and such. If you
3 // remove SkScalar from the whitelist, please change the filename here instead
4 // of adding expected diagnostics.
5 inline int headerSays(double x
) {
8 #line 9 "TestNANTestingExpr.cpp"
12 typedef double mydouble
;
15 test(f
== f
); // expected-error{{comparing a floating point value to itself for NaN checking can lead to incorrect results}} expected-note{{consider using std::isnan instead}}
16 test(d
== d
); // expected-error{{comparing a floating point value to itself for NaN checking can lead to incorrect results}} expected-note{{consider using std::isnan instead}}
17 test(f
!= f
); // expected-error{{comparing a floating point value to itself for NaN checking can lead to incorrect results}} expected-note{{consider using std::isnan instead}}
18 test(d
!= d
); // expected-error{{comparing a floating point value to itself for NaN checking can lead to incorrect results}} expected-note{{consider using std::isnan instead}}