diff options
Diffstat (limited to 'test/TableGen/eq.td')
-rw-r--r-- | test/TableGen/eq.td | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/TableGen/eq.td b/test/TableGen/eq.td new file mode 100644 index 00000000000..f8daf880b9e --- /dev/null +++ b/test/TableGen/eq.td @@ -0,0 +1,14 @@ +// RUN: llvm-tblgen %s | FileCheck %s +// XFAIL: vg_leak +// 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">; |