]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/InlineLoop.scl
Automatic execution of SCL tests in Maven
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / InlineLoop.scl
diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/InlineLoop.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/InlineLoop.scl
new file mode 100644 (file)
index 0000000..df8433c
--- /dev/null
@@ -0,0 +1,9 @@
+data SList a = Nil | Cons a (SList a)
+
+@inline
+copy (Cons h t) = Cons h (copy t)
+copy l = l
+
+main = "OK"
+--
+OK
\ No newline at end of file