summaryrefslogtreecommitdiffstats
path: root/llvm/test/TableGen/if-empty-list-arg.td
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/TableGen/if-empty-list-arg.td')
-rw-r--r--llvm/test/TableGen/if-empty-list-arg.td7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/TableGen/if-empty-list-arg.td b/llvm/test/TableGen/if-empty-list-arg.td
new file mode 100644
index 00000000000..39edf58ff29
--- /dev/null
+++ b/llvm/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]);
+}
OpenPOWER on IntegriCloud