fehler76: assertion when converting float constant to int
authorChristoph Mallon <christoph.mallon@gmx.de>
Tue, 11 Sep 2007 11:12:52 +0000 (11:12 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Tue, 11 Sep 2007 11:12:52 +0000 (11:12 +0000)
fix source of fehler74 and fehler75.

[r15740]

ir/be/test/fehler74.c
ir/be/test/fehler75.c
ir/be/test/fehler76.c [new file with mode: 0644]

index 273c05d..b70246d 100644 (file)
@@ -1,3 +1,5 @@
+/*$ -std=c99 $*/
+
 #include <stdio.h>
 #include <math.h>
 
index f908a2b..9a1db83 100644 (file)
@@ -8,4 +8,5 @@ long long k(long long a)
 int main(void)
 {
        printf("%lld\n", k(0x80000000LL));
+       return 0;
 }
diff --git a/ir/be/test/fehler76.c b/ir/be/test/fehler76.c
new file mode 100644 (file)
index 0000000..4d58c5f
--- /dev/null
@@ -0,0 +1,7 @@
+int main(void)
+{
+       float f = 1223432e3;
+       long  l = f;
+       printf("long %ld float %f\n", l, f);
+       return 0;
+}