repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
opt62.adb
blob
eb7a806d228f5c60202a7c4b80bb799b971dc115
1
-- { dg-do run }
2
-- { dg-options "-O" }
3
4
with
Opt62_Pkg
;
use
Opt62_Pkg
;
5
6
procedure
Opt62
is
7
8
String5
:
String
(
1
.
.5
) :=
"12345"
;
9
D
:
Der
:= (
Unconstrained_Der
with
D2
=>
5
,
S2
=>
String5
);
10
11
begin
12
if
D
.
Str1
/=
"abcde"
then
13
raise
Program_Error
;
14
end if
;
15
end
;