Files
revng-revng/tests/filecheck/clift/expressions/increment-const-local-variable.mlir
2026-06-03 13:59:53 +02:00

14 lines
348 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>
!int32_t$const = !clift.const<!clift.int<signed 4>>
%lvalue = clift.local : !int32_t$const
// CHECK: operand #0 must be modifiable
clift.inc %lvalue : !int32_t$const