mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Codegen with better annotations on globals.
This commit is contained in:
committed by
Christoffer Lerno
parent
041c096801
commit
ea3b50d039
@@ -14,7 +14,7 @@ fn void main()
|
||||
|
||||
/* #expect: vector_init.ll
|
||||
|
||||
@vector_init.baz = global <4 x i32> <i32 1, i32 4, i32 5, i32 7>, align 16
|
||||
@vector_init.baz = local_unnamed_addr global <4 x i32> <i32 1, i32 4, i32 5, i32 7>, align 16
|
||||
|
||||
; Function Attrs: nounwind
|
||||
define void @vector_init.main() #0 {
|
||||
|
||||
@@ -14,8 +14,8 @@ fn void tester()
|
||||
|
||||
/* #expect: test.ll
|
||||
|
||||
@test.b = global <2 x i32> <i32 1, i32 2>, align 8
|
||||
@test.c = global [2 x i32] [i32 1, i32 2], align 4
|
||||
@test.b = local_unnamed_addr global <2 x i32> <i32 1, i32 2>, align 8
|
||||
@test.c = local_unnamed_addr global [2 x i32] [i32 1, i32 2], align 4
|
||||
|
||||
define void @test.tester() #0 {
|
||||
entry:
|
||||
|
||||
Reference in New Issue
Block a user