projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a6fb31
)
fehler109
author
Matthias Braun
<matze@braunis.de>
Fri, 15 Feb 2008 22:14:48 +0000
(22:14 +0000)
committer
Matthias 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]
patch
|
blob
diff --git a/ir/be/test/fehler109.c
b/ir/be/test/fehler109.c
new file mode 100644
(file)
index 0000000..
ea0779a
--- /dev/null
+++ b/
ir/be/test/fehler109.c
@@ -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;
+}