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

Tree @release_80 (Download .tar.gz)

if-empty-list-arg.td @release_80raw · 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]);
}