1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00

Ada testcase for structs with multiple variable sized fields.

llvm-svn: 35210
This commit is contained in:
Duncan Sands 2007-03-20 09:54:02 +00:00
parent 0ea571dda0
commit cdf52c92a9
2 changed files with 14 additions and 0 deletions

View 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;

View 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;