Home | History | Annotate | Download | only in TableGen
      1 // RUN: llvm-tblgen %s | FileCheck %s
      2 // XFAIL: vg_leak
      3 
      4 // CHECK-LABEL: def X {
      5 //       CHECK:   int a = 6;
      6 //       CHECK:   int c = 5;
      7 //       CHECK: }
      8 
      9 // CHECK-LABEL: def Y {
     10 //       CHECK:   int a = 5;
     11 //       CHECK:   int c = 6;
     12 //       CHECK: }
     13 
     14 class A<bit b = 1> {
     15   int a = !if(!eq(b, 1), 5, 6);
     16   int c = !if(!ne(b, 1), 5, 6);
     17 }
     18 
     19 def X : A<0>;
     20 def Y : A;
     21