1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Test for handling of large bit offset from a

variable field offset.

llvm-svn: 45534
This commit is contained in:
Duncan Sands 2008-01-03 11:53:52 +00:00
parent 26b89fd30a
commit 4f9b058e95
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,9 @@
package Var_Offset is
pragma Elaborate_Body;
type T (L : Natural) is record
Var_Len : String (1 .. L);
Space : Integer;
Small : Character;
Bad_Field : Character;
end record;
end;

View File

@ -0,0 +1,7 @@
-- RUN: %llvmgcc -c %s -I%p/Support
package body Var_Offset is
function F (X : T) return Character is
begin
return X.Bad_Field;
end;
end;