Files
c3c/test/test_suite/lambda/lambda_attributes.c3t
2025-07-28 19:49:40 +02:00

20 lines
385 B
Plaintext

// #target: macos-x64
module test;
alias IntFn = fn int();
IntFn lambda @export = fn () => 1;
IntFn lambda_naked @export = fn () @naked => 2;
/* #expect: test.ll
; Function Attrs: naked nounwind uwtable
define internal i32 @"test.$global$lambda2"() #0 {
entry:
ret i32 2
}
; Function Attrs: nounwind uwtable
define internal i32 @"test.$global$lambda1"() #1 {
entry:
ret i32 1
}