summaryrefslogtreecommitdiff
path: root/test/TableGen/ListSlices.td
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-07-27 01:00:56 +0000
committerChris Lattner <sabre@nondot.org>2004-07-27 01:00:56 +0000
commit3aa965fbf4645846dcbd39cf5c4164914f1dda27 (patch)
tree43a5aabacfcf8db782ca7199ff9db38b15935bd0 /test/TableGen/ListSlices.td
parentb0fef64dc98d32b90782360aa9480417b7ca34fd (diff)
downloadllvm-3aa965fbf4645846dcbd39cf5c4164914f1dda27.tar.gz
llvm-3aa965fbf4645846dcbd39cf5c4164914f1dda27.tar.bz2
llvm-3aa965fbf4645846dcbd39cf5c4164914f1dda27.tar.xz
New testcase for list slicing
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15248 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/TableGen/ListSlices.td')
-rw-r--r--test/TableGen/ListSlices.td18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/TableGen/ListSlices.td b/test/TableGen/ListSlices.td
new file mode 100644
index 0000000000..be794cf217
--- /dev/null
+++ b/test/TableGen/ListSlices.td
@@ -0,0 +1,18 @@
+// RUN: tblgen %s
+
+def A {
+ list<int> B = [10, 20, 30, 4, 1, 1231, 20];
+}
+
+def B {
+ list<int> X = [10, 20, 30, 4, 1, 1231, 20] [2-4,2,2,0-6];
+
+ list<int> Y = X[4,5];
+ int Z = X[4];
+
+ list<int> C = A.B[1-4];
+
+ list<list<int>> AA = [X, Y];
+
+ int BB = AA[0][1];
+}