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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gnat.dg/] [string_slice2.adb] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 696 jeremybenn
-- { dg-do compile }
2
-- { dg-options "-O" }
3
 
4
with Ada.Strings;
5
with Ada.Strings.Fixed;
6
 
7
procedure String_Slice2 is
8
 
9
   package ASF renames Ada.Strings.Fixed;
10
 
11
   Delete_String  : String(1..10);
12
   Source_String2 : String(1..12) := "abcdefghijkl";
13
 
14
begin
15
 
16
   Delete_String := Source_String2(1..10);
17
 
18
   ASF.Delete(Source  => Delete_String,
19
              From    => 6,
20
              Through => Delete_String'Last,
21
              Justify => Ada.Strings.Left,
22
              Pad     => 'x');
23
 
24
end;

powered by: WebSVN 2.1.0

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