brintos

brintos / llvm-project-archived public Read only

0
0
Text · 409 B · 4b4abdf Raw
23 lines · plain
1// Make sure !cond gets propagated across multiple layers of inheritance.2// RUN: llvm-tblgen %s | FileCheck %s3// XFAIL: vg_leak4 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 {     // I117// CHECK-NEXT: int i = 0;18 19// CHECK: def DI2 {     // I1 I220// CHECK-NEXT: int i = 0;21def DI2: I2<1>;22 23