]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/ConjunctionMacro.scl
Automatic execution of SCL tests in Maven
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / ConjunctionMacro.scl
diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/ConjunctionMacro.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/ConjunctionMacro.scl
new file mode 100644 (file)
index 0000000..99188f8
--- /dev/null
@@ -0,0 +1,6 @@
+(&&) :: Boolean -> (<e> Boolean) -> <e> Boolean\r
+a && b = if a then b else False\r
+\r
+main = False && fail "Should not be evaluated!"\r
+--\r
+false
\ No newline at end of file