mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
3bfe36b5d9
just substituted. This could cause infinite looping in certain pathological cases. llvm-svn: 91843
16 lines
344 B
TableGen
16 lines
344 B
TableGen
// RUN: 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">;
|