mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-12 07:37:34 +00:00
Ada testcase for structs with multiple variable sized fields.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35210 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
887839d755
commit
07073e5f70
7
test/AdaFrontend/var_size.adb
Normal file
7
test/AdaFrontend/var_size.adb
Normal file
@ -0,0 +1,7 @@
|
||||
-- RUN: %llvmgcc -c %s -o /dev/null
|
||||
package body Var_Size is
|
||||
function A (X : T) return String is
|
||||
begin
|
||||
return X.A;
|
||||
end;
|
||||
end;
|
7
test/AdaFrontend/var_size.ads
Normal file
7
test/AdaFrontend/var_size.ads
Normal file
@ -0,0 +1,7 @@
|
||||
package Var_Size is
|
||||
type T (Length : Natural) is record
|
||||
A : String (1 .. Length);
|
||||
B : String (1 .. Length);
|
||||
end record;
|
||||
function A (X : T) return String;
|
||||
end;
|
Loading…
x
Reference in New Issue
Block a user