Skip to content

Commit 2d0a6d5

Browse files
tarunprabhugithub-actions[bot]
authored andcommitted
Automerge: [flang][NFC] Strip trailing whitespace from tests (12 of 14)
Only some fortran sourcefiles in flang/test/Semantics have been modified. The remaining files will be cleaned up in subsequent commits.
2 parents 01fdfa4 + 7d21334 commit 2d0a6d5

25 files changed

+73
-73
lines changed

flang/test/Semantics/modfile73.f90

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,29 +24,29 @@
2424
! RUN: cat %t/modfile73.mod | FileCheck %s
2525

2626
use modfile73ba
27-
end
27+
end
2828
module modfile73
2929
use modfile73bb
30-
use modfile73c
30+
use modfile73c
3131
CONTAINS
3232
subroutine init_
33-
end
33+
end
3434
subroutine delete_
35-
end
35+
end
3636
subroutine assign_
37-
end
38-
function initialized_
39-
end
40-
function same_
41-
end
42-
function refcount_
43-
end
44-
function id_
45-
end
46-
function name_
47-
end
37+
end
38+
function initialized_
39+
end
40+
function same_
41+
end
42+
function refcount_
43+
end
44+
function id_
45+
end
46+
function name_
47+
end
4848
subroutine tag_new_object
49-
end
49+
end
5050
end
5151

5252
! CHECK: !need$ {{.*}} n modfile73bb

flang/test/Semantics/num_images02.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ program num_images_with_team_type
2727

2828
!___ non-conforming statements ___
2929

30-
! non-scalar integer argument
30+
! non-scalar integer argument
3131
!ERROR: unknown keyword argument to intrinsic 'num_images'
3232
n = num_images(team_number=array)
3333

34-
! non-scalar team_type argument
34+
! non-scalar team_type argument
3535
!ERROR: unknown keyword argument to intrinsic 'num_images'
3636
n = num_images(team=league)
3737

flang/test/Semantics/resolve102.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ end subroutine circular
1818
!ERROR: Procedure 'foo' is recursively defined. Procedures in the cycle: 'foo', 'r'
1919
function foo() result(r)
2020
!ERROR: Procedure 'r' is recursively defined. Procedures in the cycle: 'foo', 'r'
21-
procedure(foo), pointer :: r
21+
procedure(foo), pointer :: r
2222
end function foo
2323

2424
subroutine iface

flang/test/Semantics/resolve104.f90

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
! RUN: %python %S/test_errors.py %s %flang_fc1
22
! Test constant folding of type parameter values both a base value and a
33
! parameter name are supplied.
4-
!
5-
! Type parameters are described in 7.5.3 and constant expressions are described
6-
! in 10.1.12. 10.1.12, paragraph 4 defines whether a specification inquiry is
7-
! a constant expression. Section 10.1.11, paragraph 3, item (2) states that a
8-
! type parameter inquiry is a specification inquiry.
4+
!
5+
! Type parameters are described in 7.5.3 and constant expressions are described
6+
! in 10.1.12. 10.1.12, paragraph 4 defines whether a specification inquiry is
7+
! a constant expression. Section 10.1.11, paragraph 3, item (2) states that a
8+
! type parameter inquiry is a specification inquiry.
99

1010
module m1
1111
type dtype(goodDefaultKind, badDefaultKind)

flang/test/Semantics/resolve33.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
! be one of the type-paramnames in the derived-type-stmt of that
77
! derived-type-def.
88
! C742 Each type-param-name in the derived-type-stmt in a derived-type-def
9-
! shall appear exactly once as a type-param-name in a type-param-def-stmt
9+
! shall appear exactly once as a type-param-name in a type-param-def-stmt
1010
! in that derived-type-def.
1111

1212
module m

flang/test/Semantics/resolve58.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ subroutine s5()
5858
end subroutine
5959

6060
subroutine s6()
61-
!C835 An object whose array bounds are specified by an
61+
!C835 An object whose array bounds are specified by an
6262
! implied-shape-or-assumed-size-spec shall be a dummy data object or a named
6363
! constant.
6464
!
65-
!C843 An entity with the INTENT attribute shall be a dummy data object or a
65+
!C843 An entity with the INTENT attribute shall be a dummy data object or a
6666
! dummy procedure pointer.
6767
!
6868
!C849 An entity with the OPTIONAL attribute shall be a dummy argument.

flang/test/Semantics/resolve70.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
!
1010
! C796 (R756) The derived-type-spec shall not specify an abstract type (7.5.7).
1111
!
12-
! C705 (R703) In a declaration-type-spec that uses the CLASS keyword,
12+
! C705 (R703) In a declaration-type-spec that uses the CLASS keyword,
1313
! derived-type-spec shall specify an extensible type (7.5.7).
1414
subroutine s()
1515
type, abstract :: abstractType

flang/test/Semantics/resolve71.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! RUN: %python %S/test_errors.py %s %flang_fc1
2-
! C708 An entity declared with the CLASS keyword shall be a dummy argument
2+
! C708 An entity declared with the CLASS keyword shall be a dummy argument
33
! or have the ALLOCATABLE or POINTER attribute.
44
subroutine s()
55
type :: parentType

flang/test/Semantics/resolve72.f90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
! RUN: %python %S/test_errors.py %s %flang_fc1
2-
! C709 An assumed-type entity shall be a dummy data object that does not have
3-
! the ALLOCATABLE, CODIMENSION, INTENT (OUT), POINTER, or VALUE attribute and
2+
! C709 An assumed-type entity shall be a dummy data object that does not have
3+
! the ALLOCATABLE, CODIMENSION, INTENT (OUT), POINTER, or VALUE attribute and
44
! is not an explicit-shape array.
55
subroutine s()
66
!ERROR: Assumed-type entity 'starvar' must be a dummy argument
77
type(*) :: starVar
88

99
contains
1010
subroutine inner1(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
11-
type(*) :: arg1 ! OK
12-
type(*), dimension(*) :: arg2 ! OK
11+
type(*) :: arg1 ! OK
12+
type(*), dimension(*) :: arg2 ! OK
1313
!ERROR: Assumed-type argument 'arg3' cannot have the ALLOCATABLE attribute
1414
type(*), allocatable :: arg3
1515
!ERROR: Assumed-type argument 'arg4' cannot be a coarray

flang/test/Semantics/resolve74.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! RUN: %python %S/test_errors.py %s %flang_fc1
2-
! C722 A function name shall not be declared with an asterisk type-param-value
3-
! unless it is of type CHARACTER and is the name of a dummy function or the
2+
! C722 A function name shall not be declared with an asterisk type-param-value
3+
! unless it is of type CHARACTER and is the name of a dummy function or the
44
! name of the result of an external function.
55
subroutine s()
66

0 commit comments

Comments
 (0)