Commit Graph

2 Commits

Author SHA1 Message Date
Zoltan Somogyi
ffa87fc0d9 Update the programming style of some tests in invalid.
tests/invalid/bug10.{m,err_exp}:
tests/invalid/bug115.{m,err_exp}:
tests/invalid/bug117.{m,err_exp}:
tests/invalid/bug191.{m,err_exp}:
tests/invalid/bug436.{m,err_exp}:
tests/invalid/invalid_binary_literal.{m,err_exp}:
tests/invalid/invalid_decimal_literal.{m,err_exp}:
tests/invalid/invalid_float_literal.{m,err_exp}:
tests/invalid/invalid_hex_literal.{m,err_exp}:
tests/invalid/invalid_octal_literal.{m,err_exp}:
tests/invalid/invalid_pragma.{m,err_exp}:
tests/invalid/require_tailrec_invalid.{m,err_exp}:
tests/invalid/type_lhs_var.{m,err_exp}:
tests/invalid/typeclass_no_param.{m,err_exp}:
tests/invalid/unrecognized_pragma.{m,err_exp}:
    Put vim modelines into these .m files, and improve their
    programming style.

    Update the .err_exp files for the changed line numbers.
2019-07-25 21:42:21 +02:00
Julien Fischer
c40f4300f7 Fix bug #436.
Fix a bug in foreign_enum pragmas where the compiler was not checking if
symbols appearing in the third argument were actually constructors of the type
that is the subject of the pragma.  Such symbols would be silently ignored.

compiler/add_foreign_enum.m:
     Generate an error message if we encounter symbols in the third argument
     of a foreign_enum pragma that are not constructors of the type.

tests/invalid/Mmakefile:
tests/invalid/bug436.{m,err_exp}:
     Add a regression test for bug #436.

tests/invalid/fe_unmapped_nonverbose.{m,err_exp}:
tests/invalid/fe_unmapped_verbose.{m,err_exp}:
     Fix a misspelled constructor name in these tests.
2017-05-03 09:45:17 +10:00