test/blackbox-tests/test-cases/menhir/menhir-include-subdirs.t/run.t
raw| 1 | The use of (include_subdirs qualified) should be compatible with the use of |
| 2 | Menhir in other places than the root of the file hierarchy. |
| 3 | |
| 4 | $ test() { |
| 5 | > cat >dune <<EOF |
| 6 | > (include_subdirs $1) |
| 7 | > (executable (name foo)) |
| 8 | > EOF |
| 9 | > dune build foo.exe |
| 10 | > } |
| 11 | |
| 12 | $ test unqualified |
| 13 | File "foo.ml", line 2, characters 2-5: |
| 14 | 2 | Bar.Baz.unit (fun _ -> Bar.Baz.EOF) (Lexing.from_string "") |
| 15 | ^^^ |
| 16 | Error: Unbound module Bar |
| 17 | Hint: Did you mean Baz? |
| 18 | [1] |
| 19 | $ test qualified |