1 // RUN: llvm-tblgen %s | FileCheck %s
13 // Variables for foreach
20 class A<list<string> names> {
21 list<string> Names = names;
24 class B<list<string> names> : A<!foreach(Decls.name, names, !strconcat(Decls.name, ", Sr."))>;
26 class C<list<string> names> : A<!foreach(Decls.name, names, !strconcat(Decls.name, ", Jr."))>;
28 class D<list<string> names> : A<!foreach(Decls.name, names, !subst("NAME", "John Smith", Decls.name))>;
31 list<string> values = ["Ken Griffey", "Seymour Cray"];
36 def Seniors : B<People.values>;
37 def Juniors : C<People.values>;
38 def Smiths : D<["NAME", "Jane Smith"]>;
39 def Unprocessed : D<People.values>;