mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +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
17 lines
362 B
TableGen
17 lines
362 B
TableGen
// RUN: tblgen %s | FileCheck %s
|
|
// XFAIL: vg_leak
|
|
// CHECK: No subst
|
|
// CHECK: No foo
|
|
// CHECK: RECURSE foo
|
|
|
|
class Recurse<string t> {
|
|
string Text = t;
|
|
}
|
|
|
|
class Text<string text> :
|
|
Recurse<!subst("RECURSE", "RECURSE", !subst("NORECURSE", "foo", text))>;
|
|
|
|
def Ok1 : Text<"No subst">;
|
|
def Ok2 : Text<"No NORECURSE">;
|
|
def Trouble : Text<"RECURSE NORECURSE">;
|