Skip to content

Commit 4b255a0

Browse files
author
rasmussn
committed
Initial version.
1 parent e357c97 commit 4b255a0

102 files changed

Lines changed: 854 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

tests/bug-reports-sf/Makefile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
SYNTAX = ../../src/syntax
2+
3+
all : check
4+
5+
$(SYNTAX)/Fortran.tbl :
6+
cd $(SYNTAX) ; make ; cd -
7+
8+
check : $(SYNTAX)/Fortran.tbl
9+
@for file in *.f90 ; do \
10+
echo "Running test $$file"; \
11+
sglri -p $(SYNTAX)/Fortran.tbl -i $$file -o $$file.ast; \
12+
if test $$? != 0 ; then \
13+
echo $$file " FAILED!"; \
14+
fi; \
15+
pp-aterm -i $$file.ast -o $$file.ast.aterm; \
16+
done;
17+
18+
junk :
19+
sglri -p $(SYNTAX)/Fortran.tbl -i junk.f90 -o junk.f90.ast
20+
pp-aterm -i junk.f90.ast -o junk.f90.aterm
21+
22+
clean :
23+
rm -f *.ast *.ast.aterm
24+
rm -f *.o *.mod

tests/bug-reports-sf/bind_test.f90

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
! types
2+
3+
module cula_type
4+
use, intrinsic :: ISO_C_BINDING
5+
6+
implicit none
7+
8+
enum, bind(C)
9+
enumerator :: culaNoError, culaNotInitialized, culaNoHardware, culaInsufficientRuntime
10+
end enum
11+
end module
12+
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
! This code illustrated both bug #166409 and #173230.
2+
select type (p_or_c)
3+
class is (point)
4+
print *, 'class is point'
5+
type is (integer(c_int))
6+
print *, 'type is integer'
7+
end select
8+
9+
end
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
! Taken from Note 7.44 of J3/04-007.
2+
view_diag => mydata(1::nr+1) ! the diagonal of matrix
3+
4+
end
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
call hello(i)(j,k,z)
2+
3+
end
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
! This code illustrated both bug #166409 and #173230.
2+
select type (p_or_c)
3+
class is (point)
4+
print *, 'class is point'
5+
type is (integer(c_int))
6+
print *, 'type is integer'
7+
end select
8+
9+
end
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
inte&
2+
&ger i
3+
4+
end
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
! Matt's bug in ac_implied_do. It turned out that the rule just
3+
! didn't have an action. - Bryan R.
4+
5+
integer :: i
6+
integer :: a(10)
7+
8+
a = (/ (i,i=1,10) /)
9+
end
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
subroutine iterate()
2+
real :: x
3+
4+
x = 100.0;
5+
end subroutine iterate
6+

tests/bug-reports-sf/bug-1763997.f

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
! Pause statements are a deleted feature.
2+
pause 999
3+
pause 'pause stmt'
4+
5+
end

0 commit comments

Comments
 (0)