diff options
-rw-r--r-- | test/gsizeof.myr | 7 | ||||
-rw-r--r-- | test/sizeof.myr | 3 |
2 files changed, 10 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') +} diff --git a/test/sizeof.myr b/test/sizeof.myr new file mode 100644 index 0000000..a9f00f0 --- /dev/null +++ b/test/sizeof.myr @@ -0,0 +1,3 @@ +const main = { + -> sizeof(int) +} |