From 3aa965fbf4645846dcbd39cf5c4164914f1dda27 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 27 Jul 2004 01:00:56 +0000 Subject: [PATCH] New testcase for list slicing git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15248 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/TableGen/ListSlices.td | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/TableGen/ListSlices.td diff --git a/test/TableGen/ListSlices.td b/test/TableGen/ListSlices.td new file mode 100644 index 00000000000..be794cf2174 --- /dev/null +++ b/test/TableGen/ListSlices.td @@ -0,0 +1,18 @@ +// RUN: tblgen %s + +def A { + list B = [10, 20, 30, 4, 1, 1231, 20]; +} + +def B { + list X = [10, 20, 30, 4, 1, 1231, 20] [2-4,2,2,0-6]; + + list Y = X[4,5]; + int Z = X[4]; + + list C = A.B[1-4]; + + list> AA = [X, Y]; + + int BB = AA[0][1]; +}