diff options
author | rumpf_a@web.de <> | 2010-02-21 19:42:36 +0100 |
---|---|---|
committer | rumpf_a@web.de <> | 2010-02-21 19:42:36 +0100 |
commit | d913fdb2800d83680e413cd8a5f07b7f85deac6e (patch) | |
tree | 09a284861adf96520059f211ba8bae1a76294a9c /tests/reject/tinvwhen.nim | |
parent | 6bc16904edd3738ab97573b9eeb3a6a7cce9574c (diff) | |
download | Nim-d913fdb2800d83680e413cd8a5f07b7f85deac6e.tar.gz |
start of tests refactoring; sqlite3 new wrapper fixes
Diffstat (limited to 'tests/reject/tinvwhen.nim')
-rw-r--r-- | tests/reject/tinvwhen.nim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/reject/tinvwhen.nim b/tests/reject/tinvwhen.nim new file mode 100644 index 000000000..8dc8cbf50 --- /dev/null +++ b/tests/reject/tinvwhen.nim @@ -0,0 +1,8 @@ +# 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!".} |