eq.td 265 B

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