mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
53910d9993
than -c. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120157 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
361 B
Ada
17 lines
361 B
Ada
-- RUN: %llvmgcc -S %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;
|
|
|
|
procedure Q (P : String_Pointer) is
|
|
begin
|
|
P (1) := 'Z';
|
|
end;
|
|
begin
|
|
P := new String (1 .. N);
|
|
Q (P);
|
|
end;
|