Skip to content

Commit b78fd58

Browse files
authored
[flang][NFC] Strip trailing whitespace from tests (11 of 14)
Only some fortran source files in flang/test/Semantics have been modified. The remaining files will be cleaned up in subsequent commits.
1 parent a1eff73 commit b78fd58

23 files changed

+50
-51
lines changed

flang/test/Semantics/OpenACC/acc-atomic-validity.f90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,20 @@ program openacc_atomic_validity
3737

3838
!$acc atomic read
3939
i = c(i)
40-
40+
4141
!$acc atomic read if(.true.)
4242
i = c(i)
4343

4444
!$acc atomic read
4545
i = c(i)
4646
!$acc end atomic
4747

48-
!$acc atomic read if(l)
48+
!$acc atomic read if(l)
4949
i = c(i)
5050
!$acc end atomic
5151

5252
!ERROR: FINALIZE clause is not allowed on the ATOMIC READ FINALIZE IF(L)
53-
!$acc atomic read finalize if(l)
53+
!$acc atomic read finalize if(l)
5454
i = c(i)
5555
!$acc end atomic
5656

@@ -65,7 +65,7 @@ program openacc_atomic_validity
6565
c(1) = c(2)
6666
c(1) = c(3)
6767
!$acc end atomic
68-
68+
6969
!ERROR: The assignments in this atomic capture construct do not update a variable and capture either its initial or final value
7070
!$acc atomic capture
7171
c(1) = c(2)

flang/test/Semantics/OpenACC/acc-default-none-function.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ integer function dosomething(res)
88
dosomething = res + 1
99
end function
1010
end module
11-
11+
1212
program main
1313
use mm_acc_rout_function
1414
implicit none

flang/test/Semantics/OpenACC/acc-error.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ subroutine test(a, n)
88
!ERROR: expected OpenACC directive
99
!$acc p
1010
integer :: i,j
11-
11+
1212
i = 0
1313
!ERROR: expected OpenACC directive
1414
!$acc p

flang/test/Semantics/OpenACC/acc-parallel.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ end program openacc_parallel_validity
204204
subroutine acc_parallel_default_none
205205
integer :: i, l
206206
real :: a(10,10)
207-
l = 10
207+
l = 10
208208
!$acc parallel default(none)
209209
!$acc loop
210210
!ERROR: The DEFAULT(NONE) clause requires that 'l' must be listed in a data-mapping clause

flang/test/Semantics/OpenACC/acc-reduction-validity.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,14 +171,14 @@ program openacc_reduction_validity
171171

172172
!ERROR: No explicit type declared for 'xyz'
173173
!$acc parallel reduction(+:xyz)
174-
!$acc end parallel
174+
!$acc end parallel
175175

176176

177177
end program
178178

179179
subroutine sum()
180180
!ERROR: 'sum' is already declared in this scoping unit
181-
integer :: i,sum
181+
integer :: i,sum
182182
sum = 0
183183
!$acc parallel
184184
!ERROR: Only variables are allowed in data clauses on the LOOP directive

flang/test/Semantics/allocate14.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
! Check for semantic errors in ALLOCATE statements
33

44
program allocate14
5-
5+
66
integer, allocatable :: i1, i2
77
character(200), allocatable :: msg1, msg2
88
type t
@@ -53,4 +53,3 @@ program allocate14
5353
!TODO: ERRMSG variable in DEALLOCATE must not be the variable being deallocated
5454
deallocate(ts, stat=ts(1)%i, errmsg=ts(1)%msg)
5555
end program
56-

flang/test/Semantics/bindings01.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ module m2
147147
procedure proc
148148
end type child
149149
contains
150-
subroutine proc
150+
subroutine proc
151151
end subroutine
152152
end module m2
153153

flang/test/Semantics/collectives05.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ program main
5656
allocate(foo_t :: polymorphic)
5757

5858
! Test all statically verifiable semantic requirements on co_reduce arguments
59-
! Note: We cannot check requirements that relate to "corresponding references."
59+
! Note: We cannot check requirements that relate to "corresponding references."
6060
! References can correspond only if they execute on differing images. A code that
6161
! executes in a single image might be standard-conforming even if the same code
6262
! executing in multiple images is not.

flang/test/Semantics/data03.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ subroutine CheckObject
4444
DATA(a[i], i = 1, 5) / 5 * 1 /
4545
!C875
4646
!ERROR: Data object variable must not be a function reference
47-
DATA f(1) / 1 /
47+
DATA f(1) / 1 /
4848
!C875
4949
!ERROR: Data object must have constant subscripts
5050
DATA b(ind) / 1 /

flang/test/Semantics/doconcurrent01.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! RUN: %python %S/test_errors.py %s %flang_fc1
22
! C1141
3-
! A reference to the procedure IEEE_SET_HALTING_MODE ! from the intrinsic
3+
! A reference to the procedure IEEE_SET_HALTING_MODE ! from the intrinsic
44
! module IEEE_EXCEPTIONS, shall not ! appear within a DO CONCURRENT construct.
55
!
66
! C1137

0 commit comments

Comments
 (0)