From 12e31a7121e05e6d282216863df87f22b8138cbe Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Mon, 19 Mar 2007 19:56:18 +0000 Subject: [PATCH] Test handling of ARRAY_REF when the component type is of unknown size. llvm-svn: 35176 --- test/AdaFrontend/array_ref.adb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/AdaFrontend/array_ref.adb diff --git a/test/AdaFrontend/array_ref.adb b/test/AdaFrontend/array_ref.adb new file mode 100644 index 00000000000..093233a31ff --- /dev/null +++ b/test/AdaFrontend/array_ref.adb @@ -0,0 +1,11 @@ +-- RUN: %llvmgcc -c %s -o /dev/null +procedure Array_Ref is + type A is array (Natural range <>, Natural range <>) of Boolean; + type A_Access is access A; + function Get (X : A_Access) return Boolean is + begin + return X (0, 0); + end; +begin + null; +end;