diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/functions/test_attributes.zc | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/tests/functions/test_attributes.zc b/tests/functions/test_attributes.zc index 1f02694..6e52372 100644 --- a/tests/functions/test_attributes.zc +++ b/tests/functions/test_attributes.zc @@ -6,7 +6,7 @@ fn compute() -> int { @deprecated("Use new_version instead") fn old_function() { - println "deprecated!"; + // deprecated } @inline @@ -69,10 +69,7 @@ fn complex_calc(x: int) -> int { return x * 2; } -#if defined(__linux__) -@section(".custom_section") -fn section_func() {} -#endif +// @section tests removed due to platform incompatibility (mach-o vs elf) @weak fn weak_func() {} @@ -104,8 +101,6 @@ test "function attributes" { // Check noinline compiles and runs assert(complex_calc(10) == 20, "Noinline function failed"); - - println "Function attributes OK"; } test "struct attributes" { @@ -119,6 +114,4 @@ test "struct attributes" { // Normal struct has padding assert(sizeof(NormalStruct) == 8, "NormalStruct has padding"); - - println "Struct attributes OK"; } |
