mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
26 lines
609 B
MLIR
26 lines
609 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>
|
|
|
|
!f = !clift.defined<#clift.func<
|
|
"/type-definition/1005-CABIFunctionDefinition" : !void()
|
|
>>
|
|
|
|
clift.module {
|
|
// CHECK: void fun_0x40001005(void) {
|
|
clift.func @f<!f>() attributes {
|
|
handle = "/function/0x40001005:Code_x86_64"
|
|
} {
|
|
// CHECK: struct {{.*}}frame_1005 {
|
|
// CHECK: int32_t a;
|
|
// CHECK: };
|
|
|
|
^0: // Empty block to force function definition.
|
|
}
|
|
// CHECK: }
|
|
}
|