diff options
author | Chris Lattner <sabre@nondot.org> | 2005-04-19 03:34:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-04-19 03:34:58 +0000 |
commit | 6b43c8237893381c89bc1effe8503a7b3839ccfe (patch) | |
tree | 5ab6908719f7eab7964560039d6fbf03c21d4280 /test/TableGen/LazyChange.td | |
parent | 93fc714b1dd01a1fb59e66e43c6af2449a84f927 (diff) | |
download | external_llvm-6b43c8237893381c89bc1effe8503a7b3839ccfe.zip external_llvm-6b43c8237893381c89bc1effe8503a7b3839ccfe.tar.gz external_llvm-6b43c8237893381c89bc1effe8503a7b3839ccfe.tar.bz2 |
New testcase for a changing values late and allowing them to propagate
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21343 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/TableGen/LazyChange.td')
-rw-r--r-- | test/TableGen/LazyChange.td | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/TableGen/LazyChange.td b/test/TableGen/LazyChange.td new file mode 100644 index 0000000..c3e54de --- /dev/null +++ b/test/TableGen/LazyChange.td @@ -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! + |