From 27c0cafdfc66ce731156bf076644716f240318d4 Mon Sep 17 00:00:00 2001 From: Zuhaitz Méndez Fernández de Aránguiz Date: Tue, 27 Jan 2026 13:19:23 +0000 Subject: Support for custom attributes --- tests/functions/test_attributes.zc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tests/functions') diff --git a/tests/functions/test_attributes.zc b/tests/functions/test_attributes.zc index 6495ba9..1d1f366 100644 --- a/tests/functions/test_attributes.zc +++ b/tests/functions/test_attributes.zc @@ -137,3 +137,17 @@ struct MyExportedStruct { a: int; b: int; } + +@flatten +fn my_flattened_func() { + // This uses a custom GCC attribute that ZenC doesn't know about natively. +} + +@custom_section(".my_const_data") +struct CustomSectionStruct { + x: int; +} + +test "custom attributes" { + my_flattened_func(); +} -- cgit v1.2.3