Files
Nim/tests/pragmas/tcompile_missing_file.nim
Jake Leahy d00477dffb Check file exists in {.compile.} pragma (#21105)
* Add test

* Check file exists before adding it into compilation

* Make error message look like other error messages

i.e. following the format `error msg: file`
2022-12-15 19:22:45 +01:00

6 lines
96 B
Nim

discard """
joinable: false
errormsg: "cannot find: noexist.c"
"""
{.compile: "noexist.c".}