blob: 3a0e96eb95c0bdcb235c892615147a51058b5068 [file] [log] [blame] [edit]
// RUN: not llvm-tblgen %s 2>&1 | FileCheck %s
// Test that 'let prepend' on unsupported types produces an error.
class Base {
int count = 0;
}
// CHECK: error: Cannot prepend to field 'count' of type 'int' (expected list, string, code, or dag)
def Bad : Base {
let prepend count = 1;
}