Dynamic dispatch.

This commit is contained in:
Christoffer Lerno
2023-05-25 13:46:44 +02:00
committed by Christoffer Lerno
parent 2e498a426e
commit b794c893d6
50 changed files with 529 additions and 261 deletions

View File

@@ -20,10 +20,10 @@ fn Foo getFoo(Foo f)
/* #expect: test.ll
%.introspect = type { i8, i64, i64, i64, [0 x i64] }
%.introspect = type { i8, ptr, i64, i64, i64, [0 x i64] }
%Foo = type { i8, i8, i8 }
@"$ct.test.Foo" = linkonce constant %.introspect { i8 10, i64 3, i64 0, i64 3, [0 x i64] zeroinitializer }, align 8
@"$ct.test.Foo" = linkonce global %.introspect { i8 10, ptr null, i64 3, i64 0, i64 3, [0 x i64] zeroinitializer }, align 8
; Function Attrs: nounwind
define i32 @test.testing() #0 {