Files
mercury/tests/invalid
Julien Fischer 79a8d284d2 Improve the error message if an attempt is made to use `:- pragma
Estimated hours taken: 1.5
Branches: main, release

Improve the error message if an attempt is made to use `:- pragma
import' on a multi or nondet procedure.  Currently, we just emit #error
directives in the generated C code and let the C preprocessor handle the
error reporting.

compiler/foreign.m:
	Check that we are not trying to use pragma import for
	model_non code and emit an error message if we do.

compiler/make_hlds.m:
	Conform to the above change.

tests/invalid/Mmakefile:
tests/invalid/invalid_import_detism.m:
tests/invalid/invalid_import_detism.err_exp:
	Test case for the above.
2005-03-23 07:14:44 +00:00
..
2002-11-23 04:07:08 +00:00
2002-06-02 07:19:07 +00:00
2003-05-26 09:01:46 +00:00
2003-05-26 09:01:46 +00:00