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
Fix bootstrap failure for bare metal due to autoconf link tests
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
opt55.adb
blob
70f486b2ee3660af99574361f7dc8f2051b03a45
1
-- { dg-do compile }
2
-- { dg-options "-O" }
3
4
package body
Opt55
is
5
6
function
Cond
(
B
:
Boolean
;
If_True
,
If_False
:
Date
)
return
Date
is
7
begin
8
if
B
then
9
return
If_True
;
10
else
11
return
If_False
;
12
end if
;
13
end
;
14
15
function
F
(
C
:
Rec2
;
B
:
Boolean
)
return
Date
is
16
begin
17
return
Cond
(
B
,
C
.
D1
,
C
.
D2
);
18
end
;
19
20
end
Opt55
;