Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gnat.dg/string_slice2.adb @ 144:8f4e72ab4e11
fix segmentation fault caused by nothing next cur_op to end
author | Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 23 Dec 2018 21:23:56 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
-- { dg-do compile } -- { dg-options "-O" } with Ada.Strings; with Ada.Strings.Fixed; procedure String_Slice2 is package ASF renames Ada.Strings.Fixed; Delete_String : String(1..10); Source_String2 : String(1..12) := "abcdefghijkl"; begin Delete_String := Source_String2(1..10); ASF.Delete(Source => Delete_String, From => 6, Through => Delete_String'Last, Justify => Ada.Strings.Left, Pad => 'x'); end;