Peter Collingbourne | 5d5c062 | 2011-10-06 13:39:59 +0000 | [diff] [blame] | 1 | // RUN: llvm-tblgen %s | grep WorldHelloCC | count 1 |
Jeffrey Yasskin | 32989de | 2010-03-20 23:08:45 +0000 | [diff] [blame] | 2 | // XFAIL: vg_leak |
David Greene | 065f259 | 2009-05-05 16:28:25 +0000 | [diff] [blame] | 3 | |
4 | class C<string n> { | ||||
5 | string name = n; | ||||
6 | } | ||||
7 | |||||
8 | multiclass Names<string n, string m> { | ||||
9 | def CC : C<n>; | ||||
10 | def World#NAME#CC : C<m>; | ||||
11 | } | ||||
12 | |||||
13 | defm Hello : Names<"hello", "world">; |