summaryrefslogtreecommitdiff
path: root/test/gsizeof.myr
diff options
context:
space:
mode:
Diffstat (limited to 'test/gsizeof.myr')
-rw-r--r--test/gsizeof.myr7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/gsizeof.myr b/test/gsizeof.myr
new file mode 100644
index 0000000..55bcca9
--- /dev/null
+++ b/test/gsizeof.myr
@@ -0,0 +1,7 @@
+generic sz = {a:@a
+ -> sizeof(@a)
+}
+
+const main = {
+ -> sz(123) + sz('a')
+}