mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
78a1609fa2
llvm-svn: 141294
15 lines
265 B
TableGen
15 lines
265 B
TableGen
// 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">;
|