mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-21 21:41:43 +00:00
Test for handling of large bit offset from a
variable field offset. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45534 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3d73bce2d0
commit
7cc5facfe5
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…
x
Reference in New Issue
Block a user