mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-31 07:52:55 +01:00
231a6d09fc
llvm-svn: 169862
16 lines
349 B
TableGen
16 lines
349 B
TableGen
// RUN: llvm-tblgen %s | FileCheck %s
|
|
// 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">;
|