New testcase for a changing values late and allowing them to propagate
authorChris Lattner <sabre@nondot.org>
Tue, 19 Apr 2005 03:34:58 +0000 (03:34 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 19 Apr 2005 03:34:58 +0000 (03:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21343 91177308-0d34-0410-b5e6-96231b3b80d8

test/TableGen/LazyChange.td [new file with mode: 0644]

diff --git a/test/TableGen/LazyChange.td b/test/TableGen/LazyChange.td
new file mode 100644 (file)
index 0000000..c3e54de
--- /dev/null
@@ -0,0 +1,11 @@
+// RUN: tblgen %s | grep 'int Y = 3'
+
+
+class C {
+  int X = 4;
+  int Y = X;
+}
+
+let X = 3 in
+def D : C;    // Y should be 3 too!
+