shithub: mc

Download patch

ref: e559a7dc5f76558ea0f56d9bf26385b04b496bd4
parent: ae6e5736ca20bb724632b4491d0cfd72e48c99a5
author: Ori Bernstein <orib@google.com>
date: Tue Feb 19 08:07:58 EST 2013

Add test for empty package names (ie, exporting 'main')

--- /dev/null
+++ b/test/exportmain.myr
@@ -1,0 +1,12 @@
+pkg =
+	foo	: (val:int -> int)
+;;
+
+
+const foo = {val
+	-> val
+}
+
+const main = {
+	-> foo(42)
+}
--- a/test/tests
+++ b/test/tests
@@ -32,6 +32,7 @@
 B structasn	E	42
 B structarray	E	42
 B structret	E	42
+B exportmain    E       42
 B slalloc	E	123
 B neststruct	E	3
 B array		E	7