Files
mercury/tests/invalid/loopcheck.m
Zoltan Somogyi 3dc4babb24 Update the style of more test cases.
And update expected output files for changes in line numbers.
2021-07-27 13:29:46 +10:00

24 lines
533 B
Mathematica

%---------------------------------------------------------------------------%
% vim: ts=4 sw=4 et ft=mercury
%---------------------------------------------------------------------------%
%
% rotd-1999-10-29 got a software error when compiling this test.
:- module loopcheck.
:- interface.
:- import_module io.
:- pred main(io::di, io::uo) is det.
:- implementation.
main(!IO) :-
loop(10),
io.write_string("Hello, world\n", !IO).
:- pragma loop_check(loop/1).
:- pred loop(int::in) is erroneous.
loop(X) :-
loop(X).