llvm.org GIT mirror llvm / master test / TableGen / if-empty-list-arg.td
master

Tree @master (Download .tar.gz)

if-empty-list-arg.td @masterraw · history · blame

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]);
}