[m-rev.] for review: add test for `..' to configure script

Ian MacLarty maclarty at cs.mu.OZ.AU
Mon Dec 27 11:30:34 AEDT 2004


For review by anyone.

Estimated hours taken: 0.3
Branches: main

Test for `..' as infix operator in configure script when testing if the
installed mmc is sufficiently recent, because `..' is used as an infix operator
in list.opt.

configure.in
	Test use of `..' as infix operator.

Index: configure.in
===================================================================
RCS file: /home/mercury1/repository/mercury/configure.in,v
retrieving revision 1.410
diff -u -r1.410 configure.in
--- configure.in	23 Dec 2004 04:19:35 -0000	1.410
+++ configure.in	27 Dec 2004 00:22:59 -0000
@@ -186,13 +186,14 @@
 
 		:- implementation.
 
-		:- import_module int.
+		:- import_module int, list.
         
 		main(!IO) :-
 			return_rtti_version(Version),
 			(
 				Version >= 8,
-				ac(2) ^ elem(3, 5) = 17
+				ac(2) ^ elem(3, 5) = 17,
+				(1 .. 2) = [[1, 2]]
 			->
 				io.print("Hello, world\n", !IO)
 			;
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list