llvm.org GIT mirror llvm / release_70 test / TableGen / if-type.td
release_70

Tree @release_70 (Download .tar.gz)

if-type.td @release_70raw · 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 = !if(cc, b, c);
}