We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 323919b commit e265720Copy full SHA for e265720
libcxx/test/std/numerics/c.math/signbit.pass.cpp
@@ -76,5 +76,14 @@ int main(int, char**) {
76
types::for_each(types::floating_point_types(), TestFloat());
77
types::for_each(types::integral_types(), TestInt());
78
79
+ // Make sure we can call `std::signbit` with convertible types. This checks
80
+ // whether overloads for all cv-unqualified floating-point types are working
81
+ // as expected.
82
+ {
83
+ assert(!std::signbit(ConvertibleTo<float>()));
84
+ assert(!std::signbit(ConvertibleTo<double>()));
85
+ assert(!std::signbit(ConvertibleTo<long double>()));
86
+ }
87
+
88
return 0;
89
}
0 commit comments