diff options
Diffstat (limited to 'llvm/test/TableGen/ListConversion.td')
-rw-r--r-- | llvm/test/TableGen/ListConversion.td | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/TableGen/ListConversion.td b/llvm/test/TableGen/ListConversion.td new file mode 100644 index 00000000000..773ed6e4d11 --- /dev/null +++ b/llvm/test/TableGen/ListConversion.td @@ -0,0 +1,10 @@ +// RUN: tblgen %s +class A; +class B : A; + +def b : B; + +def { + list<B> X = [b]; + list<A> Y = X; +} |