mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-29 16:12:44 +00:00
Check that accessing a struct field that occurs before the start
of the struct (!) works correctly. llvm-svn: 84853
This commit is contained in:
parent
7672e59eb8
commit
15030fc8e7
@ -5,6 +5,12 @@ procedure Negative_Field_Offset (N : Integer) is
|
||||
-- Force use of a thin pointer.
|
||||
for String_Pointer'Size use System.Word_Size;
|
||||
P : String_Pointer;
|
||||
|
||||
procedure Q (P : String_Pointer) is
|
||||
begin
|
||||
P (1) := 'Z';
|
||||
end;
|
||||
begin
|
||||
P := new String (1 .. N);
|
||||
Q (P);
|
||||
end;
|
||||
|
Loading…
x
Reference in New Issue
Block a user