2011-10-06 21:39:59 +08:00
|
|
|
// RUN: llvm-tblgen %s | FileCheck %s
|
2013-11-10 22:26:08 +08:00
|
|
|
// XFAIL: vg_leak
|
2018-03-14 19:00:57 +08:00
|
|
|
|
|
|
|
// CHECK-LABEL: def X {
|
|
|
|
// CHECK: int a = 6;
|
|
|
|
// CHECK: int c = 5;
|
|
|
|
// CHECK: }
|
|
|
|
|
|
|
|
// CHECK-LABEL: def Y {
|
|
|
|
// CHECK: int a = 5;
|
|
|
|
// CHECK: int c = 6;
|
|
|
|
// CHECK: }
|
2010-06-17 07:24:12 +08:00
|
|
|
|
|
|
|
class A<bit b = 1> {
|
|
|
|
int a = !if(!eq(b, 1), 5, 6);
|
2018-03-14 19:00:57 +08:00
|
|
|
int c = !if(!ne(b, 1), 5, 6);
|
2010-06-17 07:24:12 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
def X : A<0>;
|
|
|
|
def Y : A;
|