diff --git a/t/Makefile.am b/t/Makefile.am index e119e9d..1a172ce 100644 --- a/t/Makefile.am +++ b/t/Makefile.am @@ -1,6 +1,7 @@ AUTOMAKE_OPTIONS = nostdinc check_SCRIPTS = \ + fun-01.hcl \ insta-01.hcl \ insta-02.hcl \ ret-01.hcl \ diff --git a/t/Makefile.in b/t/Makefile.in index 53d7455..13ccfa6 100644 --- a/t/Makefile.in +++ b/t/Makefile.in @@ -468,6 +468,7 @@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = nostdinc check_SCRIPTS = \ + fun-01.hcl \ insta-01.hcl \ insta-02.hcl \ ret-01.hcl \ diff --git a/t/fun-01.hcl b/t/fun-01.hcl new file mode 100644 index 0000000..53c85ce --- /dev/null +++ b/t/fun-01.hcl @@ -0,0 +1,16 @@ +defun aaa(a b) { + | c | + set c (+ a b); + return c; +}; + +set k (aaa 10 20); + +(if (= k 30) + (printf "OK\n") +else + (printf "ERROR\n") +) + + +