mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
15 lines
252 B
C
15 lines
252 B
C
// https://issues.dlang.org/show_bug.cgi?id=24181
|
|
|
|
#include <assert.h>
|
|
|
|
unsigned equ(double x, double y)
|
|
{
|
|
return *(long long *)&x == *(long long *)&y;
|
|
}
|
|
|
|
int main()
|
|
{
|
|
assert(equ(1.0, 2.0) == 0);
|
|
assert(equ(527, 527) != 0);
|
|
return 0;
|
|
}
|