summaryrefslogtreecommitdiff
path: root/tests/interop/test_c_import.zc
diff options
context:
space:
mode:
authorZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-25 15:12:12 +0000
committerZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-25 15:12:12 +0000
commit7d1944ab9d2307f2736afe8520436872db1c7617 (patch)
tree7380a4f148f9ce0b70ed9f02cfa5e8561c783a7a /tests/interop/test_c_import.zc
parent8b720543f538862796fec0ff6b7ea12cb140bf0f (diff)
'let' it be
Diffstat (limited to 'tests/interop/test_c_import.zc')
-rw-r--r--tests/interop/test_c_import.zc6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/interop/test_c_import.zc b/tests/interop/test_c_import.zc
index ed95bc1..207aff0 100644
--- a/tests/interop/test_c_import.zc
+++ b/tests/interop/test_c_import.zc
@@ -2,7 +2,7 @@
import "math.h" as m;
test "test_c_import" {
- var x = m::sin(0.0);
+ let x = m::sin(0.0);
if x == 0.0 {
println "Success: m::sin(0.0) == 0.0";
@@ -16,8 +16,8 @@ test "test_c_import" {
extern fn abs(x: int) -> int;
test "test_interop_abs" {
- var x = -10;
- var y = abs(x);
+ let x = -10;
+ let y = abs(x);
if (y == 10) println "Abs works";
else {
println "Abs failed";