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
/
contract1.adb
blob
286fbc557ca962a0d4181f092e86e21c1c0ed06e
1
-- { dg-do compile }
2
-- { dg-options "-gnatd.F -gnatwa" }
3
4
with
Ada
.
Dispatching
;
5
6
procedure
Contract1
with
SPARK_Mode
is
7
8
function
Foo
return
Boolean
is
9
begin
10
Ada
.
Dispatching
.
Yield
;
11
return
True
;
12
end
Foo
;
13
14
Dummy
:
constant
Integer
:=
0
;
15
16
begin
17
if
Foo
and then
True
then
18
raise
Program_Error
;
19
end if
;
20
end
Contract1
;