aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-15 17:34:34 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-15 17:34:34 -0400
commit8ee23054bf771e56802ce21d70229b7f8f2e9654 (patch)
tree58b7ac43f523ed1de1e8b5f49b6465d376c88843 /test
parent3cbc62ee43737e3afae0dd2e6597ff703689634e (diff)
Update Inline C syntax and documentation/tests
Diffstat (limited to 'test')
-rw-r--r--test/inline_c.tm8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/inline_c.tm b/test/inline_c.tm
new file mode 100644
index 00000000..876e78fd
--- /dev/null
+++ b/test/inline_c.tm
@@ -0,0 +1,8 @@
+
+func main():
+ >> inline C:Int32 { int x = 1 + 2; x }
+ = 3[32]
+
+ >> inline C {
+ say(Text("Inline C code works!"), true);
+ }