forked from OSchip/llvm-project
Test for handling of large bit offset from a
variable field offset. llvm-svn: 45534
This commit is contained in:
parent
f391883670
commit
338b462b6f
|
@ -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;
|
|
@ -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;
|
Loading…
Reference in New Issue