mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
New faults and syntax (#2034)
- Remove `[?]` syntax. - Change `int!` to `int?` syntax. - New `fault` declarations. - Enum associated values can reference the calling enum.
This commit is contained in:
committed by
GitHub
parent
fefce25081
commit
25bccf4883
@@ -23,9 +23,8 @@ fn Foo getFoo(Foo f)
|
||||
%.introspect = type { i8, i64, ptr, i64, i64, i64, [0 x i64] }
|
||||
%Foo = type { i8, i8, i8 }
|
||||
|
||||
@"$ct.test.Foo" = linkonce global %.introspect { i8 10, i64 0, ptr null, i64 3, i64 0, i64 3, [0 x i64] zeroinitializer }, align 8
|
||||
@"$ct.test.Foo" = linkonce global %.introspect { i8 9, i64 0, ptr null, i64 3, i64 0, i64 3, [0 x i64] zeroinitializer }, align 8
|
||||
|
||||
; Function Attrs:
|
||||
define i32 @test.testing() #0 {
|
||||
entry:
|
||||
%y = alloca %Foo, align 1
|
||||
|
||||
Reference in New Issue
Block a user