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
/
c_words.adb
blob
dff8716401c40b857d5a415ad31e0ffb621665d3
1
-- { dg-do compile }
2
3
package body
C_Words
is
4
5
function
New_Word
(
Str
:
String
)
return
Word
is
6
begin
7
return
(
Str
'Length
,
Str
);
8
end
New_Word
;
9
10
function
New_Word
(
Str
:
String
)
return
C_Word
is
11
begin
12
return
(
Str
'Length
,
Str
);
13
end
New_Word
;
14
end
C_Words
;