mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-11 08:07:22 +00:00
5d5c0624d0
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141294 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
367 B
TableGen
17 lines
367 B
TableGen
// RUN: llvm-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">;
|