Files
2025-03-24 09:27:57 +02:00

27 lines
680 B
MLIR

//
// This file is distributed under the MIT License. See LICENSE.md for details.
//
// RUN: %revngcliftopt %s --emit-c="tagless model=%S/model.yml" -o /dev/null | FileCheck %s
!void = !clift.primitive<void 0>
!char$const = !clift.primitive<const number 1>
!f = !clift.defined<#clift.func<
"/type-definition/1001-CABIFunctionDefinition" : !void()
>>
clift.module {
// CHECK: void fun_0x40001001(void) {
clift.func @f<!f>() attributes {
handle = "/function/0x40001001:Code_x86_64"
} {
// CHECK: "hello";
clift.expr {
%s = clift.str "hello" : !clift.array<6 x !char$const>
clift.yield %s : !clift.array<6 x !char$const>
}
}
// CHECK: }
}