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

