summary refs log tree commit diff stats
path: root/tests/reject/tinvwhen.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/reject/tinvwhen.nim')
-rwxr-xr-xtests/reject/tinvwhen.nim15
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/reject/tinvwhen.nim b/tests/reject/tinvwhen.nim
deleted file mode 100755
index ea8a7ddf0..000000000
--- a/tests/reject/tinvwhen.nim
+++ /dev/null
@@ -1,15 +0,0 @@
-discard """
-  file: "tinvwhen.nim"
-  line: 11
-  errormsg: "invalid indentation"
-"""
-# This was parsed even though it should not!

-

-proc chdir(path: CString): cint {.importc: "chdir", header: "dirHeader".}

-

-proc getcwd(buf: CString, buflen: cint): CString

-    when defined(unix): {.importc: "getcwd", header: "<unistd.h>".} #ERROR_MSG invalid indentation

-    elif defined(windows): {.importc: "getcwd", header: "<direct.h>"}

-    else: {.error: "os library not ported to your OS. Please help!".}

-
-