mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-31 16:02:52 +01:00
4111c9d34c
copied field by LLVM field if the record has a variable sized field in it. The problem is that the LLVM field will not completely cover the variable sized gcc field. llvm-svn: 65463
9 lines
273 B
Ada
9 lines
273 B
Ada
package Element_Copy is
|
|
type SmallInt is range 1 .. 4;
|
|
type SmallStr is array (SmallInt range <>) of Character;
|
|
type VariableSizedField (D : SmallInt := 2) is record
|
|
S : SmallStr (1 .. D) := "Hi";
|
|
end record;
|
|
function F return VariableSizedField;
|
|
end;
|