summaryrefslogtreecommitdiff
path: root/tests/functions/test_attributes.zc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functions/test_attributes.zc')
-rw-r--r--tests/functions/test_attributes.zc14
1 files changed, 14 insertions, 0 deletions
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();
+}