fehler109
authorMatthias Braun <matze@braunis.de>
Fri, 15 Feb 2008 22:14:48 +0000 (22:14 +0000)
committerMatthias Braun <matze@braunis.de>
Fri, 15 Feb 2008 22:14:48 +0000 (22:14 +0000)
[r17746]

ir/be/test/fehler109.c [new file with mode: 0644]

diff --git a/ir/be/test/fehler109.c b/ir/be/test/fehler109.c
new file mode 100644 (file)
index 0000000..ea0779a
--- /dev/null
@@ -0,0 +1,34 @@
+int puts(const char *str);
+
+void p(void)
+{
+       puts("p");
+}
+
+void q(void)
+{
+       puts("q");
+}
+
+void f(int x, long long y) {
+       if (x) {
+               if (y)
+                       p();
+               if(!y)
+                       q();
+       } else {
+               if (y)
+                       q();
+               if(!y)
+                       p();
+       }
+}
+
+int main(void)
+{
+       f(40, 4);
+       f(0, 1);
+       f(0, 0);
+       f(41, 0);
+       return 0;
+}