summaryrefslogtreecommitdiff
path: root/llvm/test/TableGen/if-type.td
blob: f4049e692e80ed8a4b4ea1ac30f54467882c6047 (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: not llvm-tblgen %s 2>&1 | FileCheck %s
// XFAIL: vg_leak

class A<int dummy> {}
class B<int dummy> : A<dummy> {}
class C<int dummy> : A<dummy> {}

// CHECK: Field 'x' of type 'C' is incompatible with value '{{.*}}' of type 'A'
class X<int cc, B b, C c> {
  C x = !if(cc, b, c);
}