mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
22 lines
479 B
MLIR
22 lines
479 B
MLIR
//
|
|
// This file is distributed under the MIT License. See LICENSE.md for details.
|
|
//
|
|
|
|
// RUN: not %root/bin/revng clift-opt %s 2>&1 | FileCheck %s
|
|
|
|
!int32_t = !clift.int<signed 4>
|
|
|
|
!f = !clift.func<
|
|
"/type-definition/1-CABIFunctionDefinition" : !int32_t()
|
|
>
|
|
|
|
module attributes {clift.module} {
|
|
clift.func @f<!f>() {
|
|
clift.return {
|
|
// CHECK: must reference a global variable or function
|
|
%x = clift.use @x : !int32_t
|
|
clift.yield %x : !int32_t
|
|
}
|
|
}
|
|
}
|