summaryrefslogtreecommitdiff
path: root/test/gsizeof.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2012-06-26 01:20:59 -0400
committerOri Bernstein <ori@eigenstate.org>2012-06-26 01:20:59 -0400
commit0423f18453e30a452cec63e8cfff93a41c63edcb (patch)
tree91db667c6ac6af99590ed6063e713bdabff78294 /test/gsizeof.myr
parente73472e0a7547ca2d9204f6019d9068fec4bd5b8 (diff)
downloadmc-0423f18453e30a452cec63e8cfff93a41c63edcb.tar.gz
Add missing test files.
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')
+}