Files
mercury/tests/valid/two_pragma_c_codes.m
David Jeffery dc31460341 Added a test for the case where there are pragma(c_code, ...) decs for different
Estimated hours taken: 0.5

Added a test for the case where there are pragma(c_code, ...) decs for different
modes of the same pred.

two_pragma_c_codes.m :
	Added above test case.
1995-11-20 09:33:44 +00:00

21 lines
413 B
Mathematica

% A test for the case where we have pragma(c_code, ...) decs for different
% modes of the same pred.
:- module two_pragma_c_codes.
:- interface.
:- pred c_int_unify(int, int).
:- implementation.
:- mode c_int_unify(in, out) is det.
:- mode c_int_unify(out, in) is det.
:- pragma(c_code, c_int_unify(Int0::in, Int::out), "Int = Int0;").
:- pragma(c_code, c_int_unify(Int::out, Int0::in), "Int = Int0;").