1// Make sure !cond gets propagated across multiple layers of inheritance. 2// RUN: llvm-tblgen %s | FileCheck %s 3// XFAIL: vg_leak 4 5class getInt<int c> { 6 int ret = !cond(c: 0, 1 : 1); 7} 8 9class I1<int c> { 10 int i = getInt<c>.ret; 11} 12 13class I2<int c> : I1<c>; 14 15def DI1: I1<1>; 16// CHECK: def DI1 { // I1 17// CHECK-NEXT: int i = 0; 18 19// CHECK: def DI2 { // I1 I2 20// CHECK-NEXT: int i = 0; 21def DI2: I2<1>; 22 23