diff options
Diffstat (limited to 'test/TableGen/if-empty-list-arg.td')
-rw-r--r-- | test/TableGen/if-empty-list-arg.td | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/TableGen/if-empty-list-arg.td b/test/TableGen/if-empty-list-arg.td new file mode 100644 index 0000000..39edf58 --- /dev/null +++ b/test/TableGen/if-empty-list-arg.td @@ -0,0 +1,7 @@ +// RUN: llvm-tblgen %s +// XFAIL: vg_leak + +class C<bit cond> { + list<int> X = !if(cond, [1, 2, 3], []); + list<int> Y = !if(cond, [], [4, 5, 6]); +} |