summary refs log tree commit diff stats
path: root/tests/accept/compile
diff options
context:
space:
mode:
authorAndreas Rumpf <andreas@andreas-desktop>2010-03-10 16:33:55 +0100
committerAndreas Rumpf <andreas@andreas-desktop>2010-03-10 16:33:55 +0100
commit96b828a3863c28680e8a5b0165c5e0bbcca7a46c (patch)
tree6ab8e58da5bf2dde1c0c865f60ef9ecf1a55ba15 /tests/accept/compile
parent2e280eafa8b13802980cf0e2f309342742e61347 (diff)
downloadNim-96b828a3863c28680e8a5b0165c5e0bbcca7a46c.tar.gz
bugfix: len openarray
Diffstat (limited to 'tests/accept/compile')
-rwxr-xr-xtests/accept/compile/tmodulealias.nim17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/accept/compile/tmodulealias.nim b/tests/accept/compile/tmodulealias.nim
new file mode 100755
index 000000000..1154cb99d
--- /dev/null
+++ b/tests/accept/compile/tmodulealias.nim
@@ -0,0 +1,17 @@
+
+
+when defined(windows):
+  import winlean
+else:
+  import posix
+
+when defined(Windows):
+  template orig: expr = 
+    winlean
+else:
+  template orig: expr = 
+    posix
+
+proc socket(domain, typ, protocol: int): int =
+  result = orig.socket(ord(domain), ord(typ), ord(protocol)))
+