diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/TableGen/MultiClassDefName.td | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/TableGen/MultiClassDefName.td b/test/TableGen/MultiClassDefName.td new file mode 100644 index 0000000..2e71f7d --- /dev/null +++ b/test/TableGen/MultiClassDefName.td @@ -0,0 +1,12 @@ +// RUN: tblgen %s | grep WorldHelloCC | count 1 + +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">; |