1 // Check that !cond with operands of different subtypes can
2 // initialize a supertype variable.
3 // RUN: llvm-tblgen %s | FileCheck %s
7 class E1<int dummy> : E<dummy> {}
8 class E2<int dummy> : E<dummy> {}
10 class EX<int cc, E1 b, E2 c> {
11 E x = !cond(cc: b, 1 : c);
17 def EXd1 : EX<1, E1d, E2d>;
18 def EXd2 : EX<0, E1d, E2d>;