summaryrefslogtreecommitdiffstats
path: root/llvm/test/TableGen/template-arg-dependency.td
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/TableGen/template-arg-dependency.td')
-rw-r--r--llvm/test/TableGen/template-arg-dependency.td16
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/test/TableGen/template-arg-dependency.td b/llvm/test/TableGen/template-arg-dependency.td
new file mode 100644
index 00000000000..04eba7cc6b3
--- /dev/null
+++ b/llvm/test/TableGen/template-arg-dependency.td
@@ -0,0 +1,16 @@
+// RUN: llvm-tblgen %s | FileCheck %s
+// XFAIL: vg_leak
+
+// CHECK: --- Defs ---
+
+// CHECK: def A0 {
+// CHECK: int ret = 3;
+// CHECK: }
+
+class A<int a,
+ int b = !add(a, 1),
+ int sum = !add(a, b)> {
+ int ret = sum;
+}
+
+def A0 : A<1>;
OpenPOWER on IntegriCloud