llvm.org GIT mirror llvm / stable test / TableGen / cond-type.td
stable

Tree @stable (Download .tar.gz)

cond-type.td @stableraw · history · blame

// 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: Value 'x' of type 'C' is incompatible with initializer '{{.*}}' of type 'A'
class X<int cc, B b, C c> {
  C x = !cond(cc: b, 1 : c);
}