1 // RUN: llvm-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">;
15