Patch test.

This commit is contained in:
Christoffer Lerno
2024-05-09 09:53:48 +02:00
parent ed9f15becf
commit 960646ac8a

View File

@@ -32,20 +32,7 @@ extern fn int printf(char *fmt, ...);
/* #expect: test.ll
; ModuleID = 'test'
source_filename = "test"
target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-apple-macosx10.13.0"
%.introspect = type { i8, i64, ptr, i64, i64, i64, [0 x i64] }
%Foo = type { %"int[]" }
%"int[]" = type { ptr, i64 }
@"$ct.test.Foo" = linkonce global %.introspect { i8 10, i64 0, ptr null, i64 16, i64 0, i64 1, [0 x i64] zeroinitializer }, align 8
@.__const = private unnamed_addr constant [3 x i32] [i32 1, i32 3, i32 10], align 4
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nounwind uwtable
define void @test.main() #0 {
entry:
%i = alloca [3 x i32], align 4
@@ -88,19 +75,3 @@ loop.body1: ; preds = %loop.body
loop.exit: ; preds = %loop.body1, %loop.cond
ret void
}
; Function Attrs: nounwind uwtable
declare i32 @printf(ptr, ...) #0
; Function Attrs: nounwind uwtable
define i32 @main(i32 %0, ptr %1) #0 {
entry:
call void @test.main()
ret i32 0
}
; Function Attrs: argmemonly nocallback nofree nounwind willreturn
declare void @llvm.memcpy.p0.p0.i32(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i32, i1 immarg) #1
attributes #0 = { nounwind uwtable "no-trapping-math"="true" "stack-protector-buffer-size"="8" }
attributes #1 = { argmemonly nocallback nofree nounwind willreturn }