aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/b.amal.z4
-rw-r--r--tests/io.amal.z4
-rw-r--r--tests/main.amal.z36
-rw-r--r--tests/sub/a.amal.z2
4 files changed, 46 insertions, 0 deletions
diff --git a/tests/b.amal.z b/tests/b.amal.z
new file mode 100644
index 0000000..bf8e698
--- /dev/null
+++ b/tests/b.amal.z
@@ -0,0 +1,4 @@
+typedef i64 signed long long;
+typedef f64 double;
+void f0() {
+}
diff --git a/tests/io.amal.z b/tests/io.amal.z
new file mode 100644
index 0000000..bf8e698
--- /dev/null
+++ b/tests/io.amal.z
@@ -0,0 +1,4 @@
+typedef i64 signed long long;
+typedef f64 double;
+void f0() {
+}
diff --git a/tests/main.amal.z b/tests/main.amal.z
new file mode 100644
index 0000000..8095a3a
--- /dev/null
+++ b/tests/main.amal.z
@@ -0,0 +1,36 @@
+typedef i64 signed long long;
+typedef f64 double;
+void f0() {
+void f1() {
+}
+const char* r0 = "hello";
+const char* r1 = r0;
+PUSH r0 ***
+const char* r2 = "world";
+PUSH r2 ***
+i64 r3 = 356;
+PUSH r3 ***
+f64 r4 = 13.370000;
+PUSH r4 ***
+r5 = CALL 0x7f40f8002610 ***
+i64 r6 = 23232;
+i64 r7 = r6;
+i64 r8 = 30;
+r9 = r0 * r8;
+r10 = r0 + r9;
+i64 r11 = r10;
+r12 = r0 + r0;
+i64 r13 = 34;
+i64 r14 = 32;
+r15 = r13 + r14;
+i64 r16 = 2;
+r17 = r15 / r16;
+r18 = r0 * r17;
+r19 = r12 * r18;
+i64 r20 = r19;
+const char* r21 = "lole";
+PUSH r21 ***
+r22 = CALL 0x55c96755d568 ***
+}
+void f2() {
+}
diff --git a/tests/sub/a.amal.z b/tests/sub/a.amal.z
new file mode 100644
index 0000000..e0c566e
--- /dev/null
+++ b/tests/sub/a.amal.z
@@ -0,0 +1,2 @@
+typedef i64 signed long long;
+typedef f64 double;