translate: handle more noreturn cases
[ia32rtools.git] / tests / reg_call_tail2.expect.c
diff --git a/tests/reg_call_tail2.expect.c b/tests/reg_call_tail2.expect.c
new file mode 100644 (file)
index 0000000..387f2e3
--- /dev/null
@@ -0,0 +1,12 @@
+void __stdcall sub_test(int a1)
+{
+  a1 += 1;  // arg_0
+  if ((u32)a1 == 0)
+    goto return_;  // arg_0
+  another_func(a1);
+  return;  // ^ tailcall argframe
+
+return_:
+  return;
+}
+