aboutsummaryrefslogtreecommitdiff
path: root/docs/history/15-o3/code/tests/langerrors
diff options
context:
space:
mode:
Diffstat (limited to 'docs/history/15-o3/code/tests/langerrors')
-rw-r--r--docs/history/15-o3/code/tests/langerrors/const_index.zc2
-rw-r--r--docs/history/15-o3/code/tests/langerrors/fixed_nolen.zc2
-rw-r--r--docs/history/15-o3/code/tests/langerrors/fixed_push.zc2
-rw-r--r--docs/history/15-o3/code/tests/langerrors/fixed_to_dyn.zc4
-rw-r--r--docs/history/15-o3/code/tests/langerrors/o3_addr.zc2
-rw-r--r--docs/history/15-o3/code/tests/langerrors/o3_asm.zc2
-rw-r--r--docs/history/15-o3/code/tests/langerrors/o3_let.zc2
-rw-r--r--docs/history/15-o3/code/tests/langerrors/o3_param.zc3
8 files changed, 0 insertions, 19 deletions
diff --git a/docs/history/15-o3/code/tests/langerrors/const_index.zc b/docs/history/15-o3/code/tests/langerrors/const_index.zc
deleted file mode 100644
index 03e927b..0000000
--- a/docs/history/15-o3/code/tests/langerrors/const_index.zc
+++ /dev/null
@@ -1,2 +0,0 @@
-// expect: the index is out of range for this array
-fn main() { [4]int a; a[4] = 1; return 0; }
diff --git a/docs/history/15-o3/code/tests/langerrors/fixed_nolen.zc b/docs/history/15-o3/code/tests/langerrors/fixed_nolen.zc
deleted file mode 100644
index b79c31e..0000000
--- a/docs/history/15-o3/code/tests/langerrors/fixed_nolen.zc
+++ /dev/null
@@ -1,2 +0,0 @@
-// expect: a fixed array needs its length
-fn main() { fixed []int f = new(fixed []int); free(d*f); return 0; }
diff --git a/docs/history/15-o3/code/tests/langerrors/fixed_push.zc b/docs/history/15-o3/code/tests/langerrors/fixed_push.zc
deleted file mode 100644
index a19bcb4..0000000
--- a/docs/history/15-o3/code/tests/langerrors/fixed_push.zc
+++ /dev/null
@@ -1,2 +0,0 @@
-// expect: a fixed array can't grow or shrink
-fn main() { fixed []int f = new(fixed []int, 3); push(f, 1); free(d*f); return 0; }
diff --git a/docs/history/15-o3/code/tests/langerrors/fixed_to_dyn.zc b/docs/history/15-o3/code/tests/langerrors/fixed_to_dyn.zc
deleted file mode 100644
index 483f62f..0000000
--- a/docs/history/15-o3/code/tests/langerrors/fixed_to_dyn.zc
+++ /dev/null
@@ -1,4 +0,0 @@
-// expect: type error: argument: expected []int, got fixed []int
-typecheck on;
-int take([]int.m g) { return len(g); }
-fn main() { fixed []int f = new(fixed []int, 3); take(f); free(d*f); return 0; }
diff --git a/docs/history/15-o3/code/tests/langerrors/o3_addr.zc b/docs/history/15-o3/code/tests/langerrors/o3_addr.zc
deleted file mode 100644
index 815253d..0000000
--- a/docs/history/15-o3/code/tests/langerrors/o3_addr.zc
+++ /dev/null
@@ -1,2 +0,0 @@
-// expect: an o3 variable has no address
-fn main() { o3 int z = 2; *int q = &z; return *q; }
diff --git a/docs/history/15-o3/code/tests/langerrors/o3_asm.zc b/docs/history/15-o3/code/tests/langerrors/o3_asm.zc
deleted file mode 100644
index c8afb44..0000000
--- a/docs/history/15-o3/code/tests/langerrors/o3_asm.zc
+++ /dev/null
@@ -1,2 +0,0 @@
-// expect: asm can't reach an o3 variable
-fn main() { o3 int zz = 2; asm { zz @ _ } return 0; }
diff --git a/docs/history/15-o3/code/tests/langerrors/o3_let.zc b/docs/history/15-o3/code/tests/langerrors/o3_let.zc
deleted file mode 100644
index d2aff9a..0000000
--- a/docs/history/15-o3/code/tests/langerrors/o3_let.zc
+++ /dev/null
@@ -1,2 +0,0 @@
-// expect: o3 variables need a type
-fn main() { o3 { let x = 1; x++; } return 0; }
diff --git a/docs/history/15-o3/code/tests/langerrors/o3_param.zc b/docs/history/15-o3/code/tests/langerrors/o3_param.zc
deleted file mode 100644
index 5694720..0000000
--- a/docs/history/15-o3/code/tests/langerrors/o3_param.zc
+++ /dev/null
@@ -1,3 +0,0 @@
-// expect: o3 parameters need a type
-o3 int f(x) { return x; }
-fn main() { return f(1); }