! pr 15472
! sequential access files
!
! this test verifies the most basic sequential unformatted I/O
! write 3 records of various sizes
! then read them back
! and compare with what w
! Test empty if statements. We Used to fail this because we folded
! the if stmt before we finished building it.
program emptyif
implicit none
integer i
i=1
if(i .le. 0) then
else
i
! Program to test empty IF statements
program emptyif
implicit none
logical c
logical d
if (c) then
c = .true.
end if
if (c) then
else
c = .true.
end if
if
! { dg-do compile }
! This program would segfault without the patch for PR fortran/24005.
module y
!
! If private statement is removed, then we get a bunch of errors
!
private f
!
! If we
If PercentCorrect >= 90 Then
Grade="A"
ElseIf PercentCorrect >= 80 AND PercentCorrect < 90 Then
Grade="B"
ElseIf PercentCorrect >= 70 AND PercentCorrect < 80 Then
Grade="C"
ElseIf PercentC
Return {Expression}
If Num > = 200 Then
Retuin 0 //如果Num > = 200,使用Return语句结束本函数,以后的语句不再执行
Else
Return Num
End If //使用Return语句结束本函数,以后的语句不再执行
Halt {Close}