llvm-for-llvmta/test/TableGen/BitsInitOverflow.td

10 lines
265 B
TableGen
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
// RUN: not llvm-tblgen %s 2>&1 | FileCheck %s
// Check that a large integer is not truncated to a small bit sequence.
//
// CHECK: error: Initializer of 'X' in 'anonymous_0' could not be fully resolved:
def {
bits<2> X = 5; // bitfield is too small, reject
}