forked from OSchip/llvm-project
Ada testcase for structs with multiple variable sized fields.
llvm-svn: 35210
This commit is contained in:
parent
2fd6a4bef5
commit
dd066c34a9
|
@ -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;
|
|
@ -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…
Reference in New Issue