summaryrefslogtreecommitdiffstats
path: root/test/TableGen/MultiClassDefName.td
blob: 296e30c7c788f330319acd22d8038db81a233751 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: llvm-tblgen %s | grep WorldHelloCC | count 1
// XFAIL: vg_leak

class C<string n> {
  string name = n;
}

multiclass Names<string n, string m> {
   def CC : C<n>;
   def World#NAME#CC : C<m>;
}

defm Hello : Names<"hello", "world">;