:- module foo2.
:- interface.

:- import_module io.

:- pred main2(io::di, io::uo) is det.

%-----------------------------------------------------------------------------%
%-----------------------------------------------------------------------------%

:- implementation.

main2(!IO) :-
    true.

:- pragma foreign_decl("C", "
typedef int foo2_t;
extern void foo2(foo2_t x);
").

:- pragma foreign_code("C", "
void foo2(foo2_t x) {}
").

%-----------------------------------------------------------------------------%
% vim: ft=mercury ts=4 sts=4 sw=4 et
