diff options
author | Duncan Sands <baldrick@free.fr> | 2007-03-19 19:56:18 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2007-03-19 19:56:18 +0000 |
commit | 3718050bb594704a42f70d006745a938ff3564ce (patch) | |
tree | 505fb8134930383876fc811929c7089316625396 | |
parent | 868cdb2248ebce6f20797e2fad0467a5d130ffb4 (diff) |
Test handling of ARRAY_REF when the component type is of unknown size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35176 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/AdaFrontend/array_ref.adb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/AdaFrontend/array_ref.adb b/test/AdaFrontend/array_ref.adb new file mode 100644 index 0000000000..093233a31f --- /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; |