mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 18:29:46 +00:00
Test handling of record fields with negative offsets.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84851 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1395d1df09
commit
65a168cff3
10
test/FrontendAda/negative_field_offset.adb
Normal file
10
test/FrontendAda/negative_field_offset.adb
Normal file
@ -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
Block a user