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
Wattributes-10.c: Add -fno-common option on hppa*-*-hpux*.
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
raise_expr.adb
blob
cdca9064425ad4d29ea737e23f21ab70e18705d1
1
-- { dg-do compile }
2
3
procedure
Raise_Expr
is
4
5
E
:
exception
;
6
7
type
T
is tagged limited null record
;
8
type
TC
is new
T
with null record
;
9
10
function
F0
return
Boolean
is
11
begin
12
return raise
E
;
13
end
;
14
15
function
F
return
T
'Class
is
16
TT
:
T
;
17
begin
18
return raise
E
;
-- Causes compile-time crash
19
end
F
;
20
21
begin
22
declare
23
O
:
T
'class
:=
F
;
24
begin
25
null
;
26
end
;
27
end
Raise_Expr
;