xref: /llvm-project/llvm/test/TableGen/MultiClass-def-fail.td (revision 33888ff66b1950da4af2025da5d368f6a0038fd1)
1// RUN: not llvm-tblgen %s 2>&1 | FileCheck %s
2// XFAIL: vg_leak
3
4// This test checks that using def instead of defm gives a meaningful error
5multiclass M2 {
6  def X;
7}
8
9// CHECK: error: Couldn't find class 'M2'. Use 'defm' if you meant to use multiclass 'M2'
10def rec1 : M2;
11