* compile/
20000127-1.c: New test.
* execute/991228-1.c: New test.
From-SVN: r31667
+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 Löwis <loewis@informatik.hu-berlin.de>
* execute/991227-1.c: New test.
--- /dev/null
+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;
+}
--- /dev/null
+__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);
+}