Files
mercury/tests/invalid/bug238.m
Zoltan Somogyi 55733f46e6 Fix Mantis bug 238.
Estimated hours taken: 0.5
Branches: main

compiler/mercury_compile.m:
	Fix Mantis bug 238.

tests/invalid/bug238.{m,err_exp}:
	New test case for Mantis bug 238.

tests/invalid/Mmakefile:
tests/invalid/Mercury.options:
	Enable the new test case.
2011-12-01 04:59:33 +00:00

26 lines
517 B
Mathematica

% vim: ts=4 sw=4 et ft=mercury
%
% This is a regression test for Mantis bug 238.
%
% The symptom of that bug was a compiler abort, caused by the fact that
% the front end invoked the middle end even if the front end found the
% error in the code below.
:- module bug238.
:- interface.
:- pred foo is semidet.
:- implementation.
:- import_module list.
:- import_module solutions.
foo :-
promise_equivalent_solutions [] (
unsorted_solutions(
pred(3::out) is nondet,
[])
).