diff options
Diffstat (limited to 'tests/module')
-rw-r--r-- | tests/module/mopaque.nim | 7 | ||||
-rw-r--r-- | tests/module/mrecmod.nim | 1 | ||||
-rw-r--r-- | tests/module/mrecmod2.nim | 9 | ||||
-rw-r--r-- | tests/module/topaque.nim | 18 | ||||
-rw-r--r-- | tests/module/trecinca.nim | 12 | ||||
-rw-r--r-- | tests/module/trecincb.nim | 13 | ||||
-rw-r--r-- | tests/module/trecmod.nim | 2 | ||||
-rw-r--r-- | tests/module/trecmod2.nim | 10 |
8 files changed, 0 insertions, 72 deletions
diff --git a/tests/module/mopaque.nim b/tests/module/mopaque.nim deleted file mode 100644 index 7eee4bd96..000000000 --- a/tests/module/mopaque.nim +++ /dev/null @@ -1,7 +0,0 @@ -type - TLexer* {.final.} = object - line*: int - filename*: string - buffer: cstring - -proc noProcVar*(): int = 18 diff --git a/tests/module/mrecmod.nim b/tests/module/mrecmod.nim deleted file mode 100644 index fab9654d5..000000000 --- a/tests/module/mrecmod.nim +++ /dev/null @@ -1 +0,0 @@ -import trecmod diff --git a/tests/module/mrecmod2.nim b/tests/module/mrecmod2.nim deleted file mode 100644 index 9557ce729..000000000 --- a/tests/module/mrecmod2.nim +++ /dev/null @@ -1,9 +0,0 @@ -# Module B -import trecmod2 - -proc p*(x: trecmod2.T1): trecmod2.T1 = - # this works because the compiler has already - # added T1 to trecmod2's interface symbol table - return x + 1 - - diff --git a/tests/module/topaque.nim b/tests/module/topaque.nim deleted file mode 100644 index f0587c959..000000000 --- a/tests/module/topaque.nim +++ /dev/null @@ -1,18 +0,0 @@ -discard """ - file: "topaque.nim" - line: 16 - errormsg: "undeclared identifier: \'buffer\'" -""" -# Test the new opaque types - -import - mopaque - -var - L: TLexer - -L.filename = "ha" -L.line = 34 -L.buffer[0] = '\0' #ERROR_MSG undeclared field: 'buffer' - - diff --git a/tests/module/trecinca.nim b/tests/module/trecinca.nim deleted file mode 100644 index 62d37783c..000000000 --- a/tests/module/trecinca.nim +++ /dev/null @@ -1,12 +0,0 @@ -discard """ - file: "tests/reject/trecincb.nim" - line: 9 - errormsg: "recursive dependency: 'tests/module/trecincb.nim'" -""" -# Test recursive includes - -include trecincb #ERROR_MSG recursive dependency: 'tests/trecincb.nim' - -echo "trecina" - - diff --git a/tests/module/trecincb.nim b/tests/module/trecincb.nim deleted file mode 100644 index a2934052f..000000000 --- a/tests/module/trecincb.nim +++ /dev/null @@ -1,13 +0,0 @@ -discard """ - file: "trecincb.nim" - line: 9 - errormsg: "recursive dependency: 'tests/module/trecincb.nim'" -""" -# Test recursive includes - - -include trecincb #ERROR_MSG recursive dependency: 'tests/trecincb.nim' - -echo "trecinb" - - diff --git a/tests/module/trecmod.nim b/tests/module/trecmod.nim deleted file mode 100644 index 9d39d3ff7..000000000 --- a/tests/module/trecmod.nim +++ /dev/null @@ -1,2 +0,0 @@ -# recursive module -import mrecmod diff --git a/tests/module/trecmod2.nim b/tests/module/trecmod2.nim deleted file mode 100644 index 85fe2215f..000000000 --- a/tests/module/trecmod2.nim +++ /dev/null @@ -1,10 +0,0 @@ -type - T1* = int # Module A exports the type ``T1`` - -import mrecmod2 # the compiler starts parsing B - -proc main() = - var i = p(3) # works because B has been parsed completely here - -main() - |