ref: 8b1cf3fd57e7c94f6c162027e440ceb3e50ee50f
parent: b554cdfe59ba5631651182f05c19947a7b02d848
author: Ori Bernstein <[email protected]>
date: Wed Jul 11 11:14:07 EDT 2012
Make the tuple test test things more usefully.
--- /dev/null
+++ b/configure
@@ -1,0 +1,36 @@
+#!/bin/sh
+
+prefix="/usr/local"
+
+for i in `seq 300`; do
+ echo "Lots of output to emulate automake... ok"
+ echo "Testing for things you'll never use... fail"
+ echo "Satisfying the fortran77 lobby... ok"
+ echo "Burning CPU time checking for the bloody obvious... ok"
+done
+echo "Automake emulated successfully"
+
+for arg in $*; do
+ shift 1
+ case $arg in
+ "--prefix" | "-p")
+ prefix=shift $*
+ ;;
+ --prefix=*)
+ prefix=`echo $arg | sed 's/^--prefix=//g'`
+ ;;
+ "--help" | "-h")
+ echo "Usage:"
+ echo " --prefix | -p: The prefix to install to"
+ break;
+ ;;
+ *) echo "Unrecognized argument $arg";;
+ esac
+done
+
+cat << EOF
+ Building with:
+ prefix=$prefix
+EOF
+
+echo export INST_ROOT=$prefix > config.mk
--- a/test/tuple.myr
+++ b/test/tuple.myr
@@ -1,6 +1,11 @@
const main = {
var v
+ var x
+ var a
+ var b
- v = (1, 2)
- -> 42
+ x = 15
+ v = (x, x + 12)
+ (a, b) = v
+ -> a + b
}