aboutsummaryrefslogtreecommitdiff
path: root/tests/d.ek
diff options
context:
space:
mode:
Diffstat (limited to 'tests/d.ek')
-rw-r--r--tests/d.ek35
1 files changed, 0 insertions, 35 deletions
diff --git a/tests/d.ek b/tests/d.ek
deleted file mode 100644
index 1ee313d..0000000
--- a/tests/d.ek
+++ /dev/null
@@ -1,35 +0,0 @@
-struct vec[any T]
-{
- u27 size;
- u27 cap;
- *T buf;
-}
-
-append(*vec v, T::typeof(v) e)
-{
- if v.size == v.cap {
- v.cap *= 3;
- v.buf = realloc(v.buf, v.cap);
- }
- u27 a = {
- 2
- };
-
- {
- here();
- }
-
- u27 a = {
- .what = 200,
- .wow = 200
- };
-
- u27 a = switch (b) {
- default: 20;
- };
-
- label: while a {
- }
-
- v.buf[v.size] = e;
-}