mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 16:33:37 +01:00
4927fd0032
of runs without leak checking. We add -vg to the triple for non-checked runs, or -vg_leak for checked runs. Also use this to XFAIL the TableGen tests, since tablegen leaks like a sieve. This includes some valgrindArgs refactoring. llvm-svn: 99103
15 lines
260 B
TableGen
15 lines
260 B
TableGen
// RUN: 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">;
|