1// RUN: llvm-tblgen %s | FileCheck %s
2// XFAIL: vg_leak
3// CHECK: Value = 0
4// CHECK: Value = 1
5
6class Base<int V> {
7  int Value = V;
8}
9
10class Derived<string Truth> :
11  Base<!if(!eq(Truth, "true"), 1, 0)>;
12
13def TRUE : Derived<"true">;
14def FALSE : Derived<"false">;
15