Sign in
ara-mdk
/
platform
/
external
/
llvm
/
5e8da1773c8a16a9e3f08df444420f04d71ba673
/
.
/
test
/
TableGen
/
eq.td
blob: fc3ad424e2f743b2ba1f5678c5e4380cf47e262f [
file
] [
log
] [
blame
]
// RUN: llvm-tblgen %s | FileCheck %s
// CHECK: Value = 0
// CHECK: Value = 1
class
Base
<
int
V
>
{
int
Value
=
V
;
}
class
Derived
<
string
Truth
>
:
Base
<!
if
(!
eq
(
Truth
,
"true"
),
1
,
0
)>;
def
TRUE
:
Derived
<
"true"
>;
def
FALSE
:
Derived
<
"false"
>;