Files
mercury/tests/hard_coded/system_sort.m
2020-10-06 19:20:18 +11:00

21 lines
456 B
Mathematica

%---------------------------------------------------------------------------%
% vim: ts=4 sw=4 et ft=mercury
%---------------------------------------------------------------------------%
%
% This test case is to ensure that stdin/stdout are redirected correctly for
% system commands.
%
:- module system_sort.
:- interface.
:- import_module io.
:- pred main(io::di, io::uo) is det.
:- implementation.
main(!IO) :-
io.call_system("sort", _, !IO).