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
Fortran: fix ICE with use with rename of namelist member [PR116530]
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
class_51.f90
blob
d5595f2f9b7d2c26857cab138f7b37b47335a4a6
1
! { dg-do compile }
2
! { dg-options "-fdump-tree-original" }
3
!
4
! PR fortran/52270
5
!
6
! From IR F08/0073 by Malcolm Cohen
7
!
8
9
Program
m013
10
Type
t
11
Real
c
12
End Type
13
Type
(
t
),
Target
::
x
14
Call
sub
(
x
)
15
Print
*,
x
%
c
16
if
(
x
%
c
/=
3
)
STOP
1
17
Contains
18
Subroutine
sub
(
p
)
19
Class
(
t
),
Pointer
,
Intent
(
In
) ::
p
20
p
%
c
=
3
21
End Subroutine
22
End Program
23
24
! { dg-final { scan-tree-dump-times "sub \\(&class" 1 "original" } }