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:
parent
26b89fd30a
commit
4f9b058e95
9
test/FrontendAda/Support/var_offset.ads
Normal file
9
test/FrontendAda/Support/var_offset.ads
Normal 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;
|
7
test/FrontendAda/var_offset.adb
Normal file
7
test/FrontendAda/var_offset.adb
Normal 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;
|
Loading…
Reference in New Issue
Block a user