From a3b85c9737b509fd2a792b65aa2365b9bcc9fe6a Mon Sep 17 00:00:00 2001 From: Zuhaitz Méndez Fernández de Aránguiz Date: Tue, 27 Jan 2026 12:33:58 +0000 Subject: Support for more attributes --- tests/functions/test_attributes.zc | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'tests/functions') diff --git a/tests/functions/test_attributes.zc b/tests/functions/test_attributes.zc index 36ca3ad..6495ba9 100644 --- a/tests/functions/test_attributes.zc +++ b/tests/functions/test_attributes.zc @@ -115,3 +115,25 @@ test "struct attributes" { // Normal struct has padding assert(sizeof(NormalStruct) == 8, "NormalStruct has padding"); } + +@comptime +fn comp_helper() -> int { + return 123; +} + +comptime { + let val = comp_helper(); + assert(val == 123, "Comptime check failed!"); +} + +@export +fn my_exported_func() { + // This function is exported + // I don't know how to test it over here lol. +} + +@export +struct MyExportedStruct { + a: int; + b: int; +} -- cgit v1.2.3