OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gnat.dg/] [string_slice2.adb] - Rev 304

Compare with Previous | Blame | View Log

-- { 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;
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.