new fehler33.c
authorMatthias Braun <matze@braunis.de>
Fri, 29 Jun 2007 15:42:27 +0000 (15:42 +0000)
committerMatthias Braun <matze@braunis.de>
Fri, 29 Jun 2007 15:42:27 +0000 (15:42 +0000)
[r14849]

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

diff --git a/ir/be/test/fehler33.c b/ir/be/test/fehler33.c
new file mode 100644 (file)
index 0000000..4d67d6c
--- /dev/null
@@ -0,0 +1,15 @@
+/* tailrec optimisation failing on struct parameters */
+
+typedef struct {
+       int a, b, c;
+} stru;
+
+void f(int a, const stru x) {
+       if(a == 100)
+               return;
+       f(a+1, x);
+}
+
+int main() {
+       return 0;
+}