aboutsummaryrefslogtreecommitdiffstats
path: root/test/TableGen/ifbit.td
blob: e3341219ffe8b5d8605a8696861d7c6e8e18296f (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: llvm-tblgen %s | FileCheck %s
// CHECK: a = 6
// CHECK: a = 5

class A<bit b = 1> {
  int a = !if(b, 5, 6);
}

def X : A<0>;
def Y : A;