diff options
Diffstat (limited to 'test/TableGen')
-rw-r--r-- | test/TableGen/eqbit.td | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/TableGen/eqbit.td b/test/TableGen/eqbit.td new file mode 100644 index 0000000000..3953252c41 --- /dev/null +++ b/test/TableGen/eqbit.td @@ -0,0 +1,11 @@ +// RUN: tblgen %s | FileCheck %s +// XFAIL: vg_leak +// CHECK: a = 6 +// CHECK: a = 5 + +class A<bit b = 1> { + int a = !if(!eq(b, 1), 5, 6); +} + +def X : A<0>; +def Y : A; |