repo.or.cz
/
llvm
/
stm8.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Silence -Wunused-variable in release builds.
[llvm/stm8.git]
/
test
/
TableGen
/
eq.td
blob
518a80ac0d2680ad2f838bfeac0b85494f27ea91
1
// RUN: tblgen %s | FileCheck %s
2
// XFAIL: vg_leak
3
// CHECK: Value = 0
4
// CHECK: Value = 1
5
6
class Base<int V> {
7
int Value = V;
8
}
9
10
class Derived<string Truth> :
11
Base<!if(!eq(Truth, "true"), 1, 0)>;
12
13
def TRUE : Derived<"true">;
14
def FALSE : Derived<"false">;