Skip to content

Commit 92885b2

Browse files
committed
Add check for INTRINSIC & PARAMETER
1 parent b22cf10 commit 92885b2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

flang/test/Semantics/declarations02.f90

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ module m
2424
target x4
2525
volatile x4
2626

27+
!ERROR: 'sin' may not have both the INTRINSIC and PARAMETER attributes
28+
real, parameter, intrinsic :: sin
29+
2730
type :: my_type1
2831
integer :: x4
2932
end type

0 commit comments

Comments
 (0)