summaryrefslogtreecommitdiff
path: root/test/TableGen/if-empty-list-arg.td
blob: 39edf58ff29ac8d36c417b7449dfc2670bb06cc0 (plain)
1
2
3
4
5
6
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]);
}