Skip to content

Commit 965fecf

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

28 files changed

+88
-90
lines changed

flang/test/Semantics/OpenMP/allocate06.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
44
! OpenMP Version 5.0
5-
! 2.11.3 allocate Directive
5+
! 2.11.3 allocate Directive
66
! List items specified in the allocate directive must not have the ALLOCATABLE attribute unless the directive is associated with an
77
! allocate statement.
88

flang/test/Semantics/OpenMP/allocate07.f90

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
44
! OpenMP Version 5.0
5-
! 2.11.3 allocate Directive
5+
! 2.11.3 allocate Directive
66
! A type parameter inquiry cannot appear in an allocate directive.
77

88
subroutine allocate()
@@ -17,21 +17,20 @@ subroutine allocate()
1717
INTEGER(KIND=4) :: x
1818
CHARACTER(LEN=32) :: w
1919
INTEGER, DIMENSION(:), ALLOCATABLE :: y
20-
20+
2121
!ERROR: A type parameter inquiry cannot appear on the ALLOCATE directive
2222
!$omp allocate(x%KIND)
23-
23+
2424
!ERROR: A type parameter inquiry cannot appear on the ALLOCATE directive
2525
!$omp allocate(w%LEN)
2626

2727
!ERROR: A type parameter inquiry cannot appear on the ALLOCATE directive
2828
!$omp allocate(y%KIND)
29-
29+
3030
!ERROR: A type parameter inquiry cannot appear on the ALLOCATE directive
3131
!$omp allocate(my_var%kind_param)
32-
32+
3333
!ERROR: A type parameter inquiry cannot appear on the ALLOCATE directive
3434
!$omp allocate(my_var%len_param)
3535

3636
end subroutine allocate
37-

flang/test/Semantics/OpenMP/atomic-compare.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
! Check atomic compare. This combines elements from multiple other "atomic*.f90", as
66
! to avoid having several files with just a few lines in them. atomic compare needs
77
! higher openmp version than the others, so need a separate file.
8-
8+
99

1010
real a, b, c
1111
a = 1.0

flang/test/Semantics/OpenMP/atomic-hint-clause.f90

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,29 @@ program sample
1212
integer, parameter :: a = 1
1313
!$omp atomic hint(1) write
1414
y = 2
15-
15+
1616
!$omp atomic read hint(2)
17-
y = x
18-
17+
y = x
18+
1919
!ERROR: The synchronization hint is not valid
2020
!$omp atomic hint(3)
2121
y = y + 10
22-
22+
2323
!$omp atomic update hint(5)
2424
y = x + y
25-
25+
2626
!ERROR: The synchronization hint is not valid
2727
!$omp atomic hint(7) capture
2828
!WARNING: In ATOMIC UPDATE operation with CAPTURE either statement could be the update and the capture, assuming the first one is the capture statement
2929
y = x
3030
x = y
3131
!$omp end atomic
32-
32+
3333
!ERROR: Synchronization hint must be a constant integer value
3434
!ERROR: Must be a constant value
3535
!$omp atomic update hint(x)
3636
y = y * 1
37-
37+
3838
!$omp atomic read hint(4)
3939
y = x
4040

@@ -46,11 +46,11 @@ program sample
4646

4747
!$omp atomic hint(omp_lock_hint_speculative)
4848
x = y + x
49-
49+
5050
!ERROR: Synchronization hint must be a constant integer value
5151
!ERROR: Must be a constant value
5252
!$omp atomic hint(omp_sync_hint_uncontended + omp_sync_hint) read
53-
y = x
53+
y = x
5454

5555
!$omp atomic hint(omp_sync_hint_nonspeculative)
5656
y = y * 9
@@ -72,7 +72,7 @@ program sample
7272

7373
!ERROR: The synchronization hint is not valid
7474
!$omp atomic hint(omp_sync_hint_uncontended + omp_sync_hint_contended) read
75-
y = x
75+
y = x
7676

7777
!ERROR: The synchronization hint is not valid
7878
!$omp atomic hint(omp_sync_hint_nonspeculative + omp_lock_hint_speculative)

flang/test/Semantics/OpenMP/atomic-update-overloaded-ops.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ pure integer function myprocedure(param1, param2)
1616
program sample
1717
use new_operator
1818
implicit none
19-
integer :: x, y
19+
integer :: x, y
2020

2121
!$omp atomic update
2222
x = x / y
23-
23+
2424
!$omp atomic update
2525
!ERROR: A call to this function is not a valid ATOMIC UPDATE operation
2626
x = x .MYOPERATOR. y

flang/test/Semantics/OpenMP/atomic02.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ program OmpAtomic
3030
!$omp atomic
3131
!ERROR: The ** operator is not a valid ATOMIC UPDATE operation
3232
a = a**4
33-
!$omp atomic
33+
!$omp atomic
3434
!ERROR: Atomic variable c cannot have CHARACTER type
3535
!ERROR: The atomic variable c should appear as an argument in the update operation
36-
c = d
36+
c = d
3737
!$omp atomic
3838
!ERROR: The < operator is not a valid ATOMIC UPDATE operation
3939
l = a .LT. b

flang/test/Semantics/OpenMP/atomic03.f90

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ program OmpAtomic
6060
!$omp atomic update
6161
!ERROR: The atomic variable z should appear as an argument of the top-level AND operator
6262
z = IAND(y, 4)
63-
!$omp atomic update
63+
!$omp atomic update
6464
!ERROR: The atomic variable z should appear as an argument of the top-level OR operator
6565
z = IOR(y, 5)
6666
!$omp atomic update
@@ -101,11 +101,11 @@ subroutine more_invalid_atomic_update_stmts()
101101
integer :: m(10)
102102
end type
103103
type(some_type) :: s
104-
104+
105105
!$omp atomic update
106106
!ERROR: The atomic variable a should be exactly one of the arguments of the top-level MIN operator
107107
a = min(a, a, b)
108-
108+
109109
!$omp atomic
110110
!ERROR: The atomic variable a should be exactly one of the arguments of the top-level MAX operator
111111
a = max(b, a, b, a)
@@ -116,11 +116,11 @@ subroutine more_invalid_atomic_update_stmts()
116116
!$omp atomic
117117
!ERROR: The atomic variable a should be exactly one of the arguments of the top-level MAX operator
118118
a = max(b, a, b, a, b)
119-
119+
120120
!$omp atomic update
121121
!ERROR: The atomic variable y should appear as an argument of the top-level MIN operator
122122
y = min(z, x)
123-
123+
124124
!$omp atomic
125125
z = max(z, y)
126126

flang/test/Semantics/OpenMP/atomic04.f90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ program OmpAtomic
6060
m = m .AND. n
6161
!$omp atomic
6262
m = n .AND. m
63-
!$omp atomic
63+
!$omp atomic
6464
!ERROR: The atomic variable m should appear as an argument of the top-level AND operator
6565
m = n .AND. l
6666

6767
!$omp atomic
6868
m = m .OR. n
6969
!$omp atomic
7070
m = n .OR. m
71-
!$omp atomic
71+
!$omp atomic
7272
!ERROR: The atomic variable m should appear as an argument of the top-level OR operator
7373
m = n .OR. l
7474

@@ -175,13 +175,13 @@ subroutine more_invalid_atomic_update_stmts()
175175
real :: n(10)
176176
end type
177177
type(some_type) p
178-
178+
179179
!$omp atomic
180180
x = x
181181

182182
!$omp atomic update
183183
!ERROR: This is not a valid ATOMIC UPDATE operation
184-
x = 1
184+
x = 1
185185

186186
!$omp atomic update
187187
!ERROR: The atomic variable a cannot be a proper subexpression of an argument (here: a*b) in the update operation

flang/test/Semantics/OpenMP/clause-validity01.f90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@
426426
enddo
427427
enddo
428428
!omp end do nowait
429-
!$omp end parallel
429+
!$omp end parallel
430430

431431
! 2.11.4 parallel-do-simd-clause -> parallel-clause |
432432
! do-simd-clause
@@ -591,7 +591,7 @@
591591
allc = 3.14
592592
enddo
593593

594-
!$omp target enter data map(alloc:A) device(0)
595-
!$omp target exit data map(delete:A) device(0)
594+
!$omp target enter data map(alloc:A) device(0)
595+
!$omp target exit data map(delete:A) device(0)
596596

597597
end program

flang/test/Semantics/OpenMP/critical-empty.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
1+
! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
22
! Test that there are no errors for an empty critical construct
33

44
!$omp critical

0 commit comments

Comments
 (0)