Files
c3c/test/test_suite/lambda/lambda_attributes.c3t
Christoffer Lerno 48318c3ad4 Fixed tests.
2025-08-23 19:43:01 +02:00

21 lines
457 B
Plaintext

// #target: macos-x64
module test;
alias IntFn = fn int();
IntFn lambda @export = fn () => 1;
IntFn lambda_naked @export = fn () @naked { asm("ret"); };
/* #expect: test.ll
; Function Attrs: naked nounwind uwtable
define i32 @"test.$global$lambda2"() #0 {
entry:
call void asm sideeffect alignstack "ret", "~{dirflag},~{fpsr},~{flags}"()
unreachable
}
; Function Attrs: nounwind uwtable
define i32 @"test.$global$lambda1"() #1 {
entry:
ret i32 1
}