[svn] r7072: nemerle/trunk/ncc/testsuite/positive: macrolib.n z-bug798.n

malekith svnadmin at nemerle.org
Thu Dec 7 12:22:17 CET 2006


Log:
Add test for #798.

Author: malekith
Date: Thu Dec  7 12:22:17 2006
New Revision: 7072

Added:
   nemerle/trunk/ncc/testsuite/positive/z-bug798.n
Modified:
   nemerle/trunk/ncc/testsuite/positive/macrolib.n

Modified: nemerle/trunk/ncc/testsuite/positive/macrolib.n
==============================================================================
--- nemerle/trunk/ncc/testsuite/positive/macrolib.n	(original)
+++ nemerle/trunk/ncc/testsuite/positive/macrolib.n	Thu Dec  7 12:22:17 2006
@@ -437,3 +437,10 @@
  <[ $(texpr : typed).GetType() ]>
 }
 
+
+namespace Bug798 {
+    macro test(_name, _code) syntax ("test", _name, _code ) 
+    {
+      <[ () ]>
+    }
+}

Added: nemerle/trunk/ncc/testsuite/positive/z-bug798.n
==============================================================================
--- (empty file)
+++ nemerle/trunk/ncc/testsuite/positive/z-bug798.n	Thu Dec  7 12:22:17 2006
@@ -0,0 +1,11 @@
+// REFERENCE: macrolib.dll
+#pragma indent
+using Bug798
+
+test "empty"
+   ()
+
+def @match () 
+  System.Console.WriteLine ("foo")
+ at match ()
+ at match ()



More information about the svn mailing list