diff options
| author | SAJJA EASWAR <eshwarsajja20@gmail.com> | 2026-01-25 22:59:36 +0530 |
|---|---|---|
| committer | SAJJA EASWAR <eshwarsajja20@gmail.com> | 2026-01-25 22:59:36 +0530 |
| commit | ebc8b94baa6bc694cb4829e2eb2934a1f17fa6a1 (patch) | |
| tree | 71b952ad455bf17d5bdea01472f0e2297f25eabe /tests/functions/test_attributes.zc | |
| parent | 863118c95caac0d69a35f6ae4d2e83844734a8a1 (diff) | |
| parent | 489336b2101bf16edeec7bfc4379408eb19b936e (diff) | |
Merge branch 'main' into pr-109
Diffstat (limited to 'tests/functions/test_attributes.zc')
| -rw-r--r-- | tests/functions/test_attributes.zc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/functions/test_attributes.zc b/tests/functions/test_attributes.zc index 6e52372..36ca3ad 100644 --- a/tests/functions/test_attributes.zc +++ b/tests/functions/test_attributes.zc @@ -50,8 +50,8 @@ struct NormalStruct { b: U32; } -var init_called = 0; -var cleanup_called = 0; +let init_called = 0; +let cleanup_called = 0; @constructor fn my_init() { @@ -79,18 +79,18 @@ fn unused_func() {} test "function attributes" { // @must_use: result used - no warning - var x = compute(); + let x = compute(); assert(x == 42, "compute() failed"); // No must_use - can discard optional_result(); // @inline works - var sum = fast_add(1, 2); + let sum = fast_add(1, 2); assert(sum == 3, "inline add failed"); // Combined attributes - var c = combined(); + let c = combined(); assert(c == 100, "combined failed"); // @must_use: result verified |
