Files
mercury/tests/warnings/empty_interface.exp
Julien Fischer 99cd93dcfb Shift some tests.
The tests below are not actually invalid, they cause the compiler to emit only
warnings and properly belong in the warnings directory.

tests/invalid/empty_interface.{m,err_exp}:
tests/invalid/foreign_singleton.{m,err_exp}:
tests/invalid/obsolete_proc_pragma.{m,err_exp}:
     Shift these tests into the warnings directory and use the
     appropriate extension for expected outputs in that directory

tests/invalid/Mmakefile:
tests/invalid/Mercury.options:
tests/warnings/Mercury.options:
tests/warnings/Mmakefile:
     Conform to the above changes.
2022-04-14 16:13:37 +10:00

9 lines
572 B
Plaintext

empty_interface.m:005: Warning: the interface of module `empty_interface' does
empty_interface.m:005: not export anything.
empty_interface.m:005: To be useful, a module should export something. A file
empty_interface.m:005: should contain at least one declaration other than
empty_interface.m:005: `:- import_module' in its interface section(s). This
empty_interface.m:005: would normally be a `:- pred' or `:- func'
empty_interface.m:005: declaration, or a `:- type', `:- inst', `:- mode',
empty_interface.m:005: `:- typeclass' or `:- instance' definition.