mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Compacted section list. Somewhat more controlled ctarg search.
This commit is contained in:
15
test/test_suite/abi/macho_section.c3t
Normal file
15
test/test_suite/abi/macho_section.c3t
Normal file
@@ -0,0 +1,15 @@
|
||||
// #target: macos-x64
|
||||
module test;
|
||||
|
||||
int z @section("__TEXT,__custoection");
|
||||
int w @section("__TEXT,__custoection");
|
||||
|
||||
fn void main()
|
||||
{
|
||||
int a = z + w;
|
||||
}
|
||||
|
||||
/* #expect: test.ll
|
||||
|
||||
@test.z = local_unnamed_addr global i32 0, section "__TEXT,__custoection", align 4
|
||||
@test.w = local_unnamed_addr global i32 0, section "__TEXT,__custoection", align 4
|
||||
Reference in New Issue
Block a user