diff options
Diffstat (limited to 'test/FrontendAda/negative_field_offset.adb')
-rw-r--r-- | test/FrontendAda/negative_field_offset.adb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/FrontendAda/negative_field_offset.adb b/test/FrontendAda/negative_field_offset.adb index 02e3dac..f8b8510 100644 --- a/test/FrontendAda/negative_field_offset.adb +++ b/test/FrontendAda/negative_field_offset.adb @@ -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; |