Files
mercury/tests/debugger/user_event_shallow_exported.m
Zoltan Somogyi 7e5fc92acf Add tests/debugger/user_event_shallow_exported.m.
This is a cut-down test case that demonstrates, regardless of optimization
options, the cause of the failure of the user_event_shallow test case
with intermodule optimization: the fact that the current implementation
ignores user events in procedures if they are exported from the module
that is shallow traced.

tests/debugger/user_event_shallow_exported.{m,exp}:
    As above. The .exp file will be filled in once the bug has been fixed.

tests/debugger/user_event_spec_3:
    Add the event specification file for the new test.

tests/debugger/Mercury.options:
    Specify that event specification file for the new test.

tests/debugger/user_event_spec:
tests/debugger/user_event_spec_2:
    Expand out tabs.
2021-08-09 14:36:04 +10:00

25 lines
533 B
Mathematica

%---------------------------------------------------------------------------%
% vim: ts=4 sw=4 et ft=mercury
%---------------------------------------------------------------------------%
:- module user_event_shallow_exported.
:- interface.
:- import_module io.
:- import_module list.
:- pred main(io::di, io::uo) is det.
:- pred test(list(int)::in, io::di, io::uo) is det.
:- implementation.
main(!IO) :-
Data = [1, 2, 3, 4, 5],
test(Data, !IO).
test(Data, !IO) :-
event data(Data),
io.write_line(Data, !IO).