]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Macros1.scl
Automatic execution of SCL tests in Maven
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / Macros1.scl
diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Macros1.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Macros1.scl
new file mode 100644 (file)
index 0000000..37b4e05
--- /dev/null
@@ -0,0 +1,8 @@
+@macro\r
+(||) :: Boolean -> Boolean -> Boolean \r
+a || b = if a then True else b\r
+\r
+main :: Boolean\r
+main = True || (fail "This should not be executed")\r
+--\r
+true
\ No newline at end of file