Commit 73565a71 by Jakub Jelinek Committed by Jakub Jelinek

20000127-1.c: New test.

	* compile/20000127-1.c: New test.
	* execute/991228-1.c: New test.

From-SVN: r31667
parent dfe50efb
2000-01-27 Jakub Jelinek <jakub@redhat.com>
* compile/20000127-1.c: New test.
* execute/991228-1.c: New test.
1999-12-27 Martin von Lwis <loewis@informatik.hu-berlin.de>
* execute/991227-1.c: New test.
......
double bar(void), c;
int foo(void) {
double a, b;
int i = bar() + bar();
a = i; i += 1; a += 0.1; i = c + i;
return i;
}
__extension__ union { double d; int i[2]; } u = { d: -0.25 };
int
signbit(double x)
{
__extension__ union { double d; int i[2]; } u = { d: x };
return u.i[0] < 0;
}
int main(void)
{
if (2*sizeof(int) != sizeof(double) || u.i[0] >= 0)
exit(0);
if (!signbit(-0.25))
abort();
exit(0);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment