xref: /llvm-project/llvm/test/TableGen/cond-type.td (revision b3931188fdc84ce2bd93a0770ddc8182d18c5010)
1// RUN: not llvm-tblgen %s 2>&1 | FileCheck %s
2// XFAIL: vg_leak
3
4class A<int dummy> {}
5class B<int dummy> : A<dummy> {}
6class C<int dummy> : A<dummy> {}
7
8// CHECK: Field 'x' of type 'C' is incompatible with value '{{.*}}' of type 'A'
9class X<int cc, B b, C c> {
10  C x = !cond(cc: b, 1 : c);
11}
12