forked from OSchip/llvm-project
Test handling of record fields with negative offsets.
llvm-svn: 84851
This commit is contained in:
parent
c77f8634e5
commit
ec0a98f033
|
@ -0,0 +1,10 @@
|
|||
-- RUN: %llvmgcc -c %s
|
||||
with System;
|
||||
procedure Negative_Field_Offset (N : Integer) is
|
||||
type String_Pointer is access String;
|
||||
-- Force use of a thin pointer.
|
||||
for String_Pointer'Size use System.Word_Size;
|
||||
P : String_Pointer;
|
||||
begin
|
||||
P := new String (1 .. N);
|
||||
end;
|
Loading…
Reference in New Issue