]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Select9.scl
Automatic execution of SCL tests in Maven
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / Select9.scl
diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Select9.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Select9.scl
new file mode 100644 (file)
index 0000000..5680679
--- /dev/null
@@ -0,0 +1,12 @@
+import "StandardLibrary"
+
+s1 = [1,2,3]
+s2 = [1,3] 
+    
+main = do
+    C ?x :-
+        ?x <- s1
+        <!> ?x <- s2
+    select ?x where C ?x
+--
+[2]
\ No newline at end of file