Test support for arrays with non-zero first index.
authorDuncan Sands <baldrick@free.fr>
Tue, 13 Mar 2007 15:12:35 +0000 (15:12 +0000)
committerDuncan Sands <baldrick@free.fr>
Tue, 13 Mar 2007 15:12:35 +0000 (15:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35084 91177308-0d34-0410-b5e6-96231b3b80d8

test/AdaFrontend/array_constructor.adb [new file with mode: 0644]
test/AdaFrontend/array_size.adb [new file with mode: 0644]

diff --git a/test/AdaFrontend/array_constructor.adb b/test/AdaFrontend/array_constructor.adb
new file mode 100644 (file)
index 0000000..d75b8e0
--- /dev/null
@@ -0,0 +1,6 @@
+-- RUN: %llvmgcc -c %s -o /dev/null
+procedure Array_Constructor is
+   A : array (Integer range <>) of Boolean := (True, False);
+begin
+   null;
+end;
diff --git a/test/AdaFrontend/array_size.adb b/test/AdaFrontend/array_size.adb
new file mode 100644 (file)
index 0000000..da4c589
--- /dev/null
@@ -0,0 +1,10 @@
+-- RUN: %llvmgcc -c %s -o /dev/null
+procedure Array_Size is
+   subtype S is String (1 .. 2);
+   type R is record
+      A : S;
+   end record;
+   X : R;
+begin
+   null;
+end;