[llvm-commits] CVS: llvm/test/Regression/TableGen/AnonDefinitionOnDemand.td
Chris Lattner
lattner at cs.uiuc.edu
Thu Sep 8 11:47:55 PDT 2005
Changes in directory llvm/test/Regression/TableGen:
AnonDefinitionOnDemand.td added (r1.1)
---
Log message:
x and X should be structurally identical
---
Diffs of the changes: (+12 -0)
AnonDefinitionOnDemand.td | 12 ++++++++++++
1 files changed, 12 insertions(+)
Index: llvm/test/Regression/TableGen/AnonDefinitionOnDemand.td
diff -c /dev/null llvm/test/Regression/TableGen/AnonDefinitionOnDemand.td:1.1
*** /dev/null Thu Sep 8 13:47:53 2005
--- llvm/test/Regression/TableGen/AnonDefinitionOnDemand.td Thu Sep 8 13:47:43 2005
***************
*** 0 ****
--- 1,12 ----
+ // RUN: tblgen < %s
+
+ class foo<int X> { int THEVAL = X; }
+ def foo_imp : foo<1>;
+
+ def x {
+ foo Y = foo_imp; // This works.
+ }
+
+ def X {
+ foo Y = foo<1>; // This should work too, synthesizing a new foo<1>.
+ }
More information about the llvm-commits
mailing list