Skip to content

Commit dd03aec

Browse files
tarunprabhuvinay-deshmukh
authored andcommitted
[flang][NFC] Strip trailing whitespace from tests (1 of N)
Only the fortran source files in flang/test have been modified. The other files in the directory will be cleaned up in subsequent commits
1 parent 68421be commit dd03aec

16 files changed

+41
-42
lines changed

flang/test/Driver/convert.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! Ensure argument -fconvert=<value> accepts all relevant options and produces an
2-
! error if an invalid value is specified.
2+
! error if an invalid value is specified.
33

44
!--------------------------
55
! FLANG DRIVER (flang)

flang/test/Driver/do_concurrent_to_omp_cli.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
! RUN: %flang --help | FileCheck %s --check-prefix=FLANG
44

55
! FLANG: -fdo-concurrent-to-openmp=<value>
6-
! FLANG-NEXT: Try to map `do concurrent` loops to OpenMP [none|host|device]
6+
! FLANG-NEXT: Try to map `do concurrent` loops to OpenMP [none|host|device]
77

88
! RUN: bbc --help | FileCheck %s --check-prefix=BBC
99

1010
! BBC: -fdo-concurrent-to-openmp=<string>
11-
! BBC-SAME: Try to map `do concurrent` loops to OpenMP [none|host|device]
11+
! BBC-SAME: Try to map `do concurrent` loops to OpenMP [none|host|device]
1212

1313
! RUN: %flang -c -fdo-concurrent-to-openmp=host %s 2>&1 \
1414
! RUN: | FileCheck %s --check-prefix=OPT

flang/test/Driver/emit-mlir.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
! CHECK-NEXT: func.func @main(%arg0: i32, %arg1: !llvm.ptr, %arg2: !llvm.ptr) -> i32 {
2222
! CHECK-NEXT: %c0_i32 = arith.constant 0 : i32
2323
! CHECK-NEXT: %0 = fir.zero_bits !fir.ref<tuple<i32, !fir.ref<!fir.array<0xtuple<!fir.ref<i8>, !fir.ref<i8>>>>>>
24-
! CHECK-NEXT: fir.call @_FortranAProgramStart(%arg0, %arg1, %arg2, %0) {{.*}} : (i32, !llvm.ptr, !llvm.ptr, !fir.ref<tuple<i32, !fir.ref<!fir.array<0xtuple<!fir.ref<i8>, !fir.ref<i8>>>>>>)
24+
! CHECK-NEXT: fir.call @_FortranAProgramStart(%arg0, %arg1, %arg2, %0) {{.*}} : (i32, !llvm.ptr, !llvm.ptr, !fir.ref<tuple<i32, !fir.ref<!fir.array<0xtuple<!fir.ref<i8>, !fir.ref<i8>>>>>>)
2525
! CHECK-NEXT: fir.call @_QQmain() fastmath<contract> : () -> ()
2626
! CHECK-NEXT: fir.call @_FortranAProgramEndStatement() {{.*}} : () -> ()
2727
! CHECK-NEXT: return %c0_i32 : i32

flang/test/Driver/fatal-errors-parsing.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ program p
77
! CHECK2: fatal-errors-parsing.f90:{{.*}} error:
88
continue
99
end
10-
10+
1111
subroutine s
1212
contains
1313
! CHECK1-NOT: error:

flang/test/Driver/fatal-errors-semantics.f90

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,3 @@ subroutine test
3737
call soa(null())
3838
end
3939
end
40-

flang/test/Driver/flang-ld-aarch64.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! Check linker flags for AArch64 linux, since it needs both libgcc and
1+
! Check linker flags for AArch64 linux, since it needs both libgcc and
22
! compiler-rt, with compiler-rt second when -rtlib=libgcc.
33

44
! RUN: %flang -### -rtlib=libgcc --target=aarch64-linux-gnu %S/Inputs/hello.f90 2>&1 | FileCheck %s

flang/test/Driver/flang-ld-powerpc.f90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
!! -static-libflang_rt in the future. Need to add that option here.
55

66
!! Because flang-rt currently only supports
7-
!! LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=ON, use
7+
!! LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=ON, use
88
!! resource_dir_with_per_target_subdir as inputs.
99

1010
! Check powerpc64-ibm-aix 64-bit linking to static flang-rt by default
@@ -26,7 +26,7 @@
2626
! AIX64-LD-PER-TARGET-DEFAULT-NOT: "-L/[[RESOURCE_DIR]]{{/|\\\\}}lib{{/|\\\\}}powerpc64-ibm-aix"
2727

2828

29-
! Check powerpc64-ibm-aix 64-bit linking to static flang-rt by option
29+
! Check powerpc64-ibm-aix 64-bit linking to static flang-rt by option
3030
! RUN: %flang -static-libflangrt -Werror %s -### 2>&1 \
3131
! RUN: --target=powerpc64-ibm-aix \
3232
! RUN: -resource-dir=%S/../../../clang/test/Driver/Inputs/resource_dir_with_per_target_subdir \
@@ -44,7 +44,7 @@
4444
! AIX64-LD-PER-TARGET-STATIC-SAME: "-lpthread"
4545

4646

47-
! Check powerpc64-ibm-aix 64-bit linking to shared flang-rt by option
47+
! Check powerpc64-ibm-aix 64-bit linking to shared flang-rt by option
4848
! RUN: %flang -shared-libflangrt -Werror %s -### 2>&1 \
4949
! RUN: --target=powerpc64-ibm-aix \
5050
! RUN: -resource-dir=%S/../../../clang/test/Driver/Inputs/resource_dir_with_per_target_subdir \

flang/test/Driver/gcc-toolchain-install-dir.f90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
! RUN: %flang 2>&1 -### -v -o %t %s -no-integrated-as -fuse-ld=ld --target=i386-unknown-linux-gnu --gcc-install-dir=%S/Inputs/basic_cross_linux_tree/usr/lib/gcc/i386-unknown-linux-gnu/10.2.0 | FileCheck %s --check-prefix=CHECK-I386
66
! RUN: %flang 2>&1 -### -v -o %t %s -no-integrated-as -fuse-ld=ld --target=i386-unknown-linux-gnu --gcc-toolchain=%S/Inputs/basic_cross_linux_tree/usr | FileCheck %s --check-prefix=CHECK-I386
77
! CHECK-I386: Selected GCC installation: [[PREFIX:[^"]+]]/Inputs/basic_cross_linux_tree/usr/lib/gcc/i386-unknown-linux-gnu/10.2.0
8-
! CHECK-I386: "-fc1" "-triple" "i386-unknown-linux-gnu"
8+
! CHECK-I386: "-fc1" "-triple" "i386-unknown-linux-gnu"
99
! CHECK-I386: "[[PREFIX:[^"]+]]/Inputs/basic_cross_linux_tree/usr/lib/gcc/i386-unknown-linux-gnu/10.2.0/../../../../i386-unknown-linux-gnu/bin{{/|\\\\}}as"
1010
! CHECK-I386: "[[PREFIX]]/Inputs/basic_cross_linux_tree/usr/lib/gcc/i386-unknown-linux-gnu/10.2.0/../../../../i386-unknown-linux-gnu/bin{{/|\\\\}}ld" {{.*}} "-m" "elf_i386"
11-
! CHECK-I386-SAME: "-L[[PREFIX]]/Inputs/basic_cross_linux_tree/usr/lib/gcc/i386-unknown-linux-gnu/10.2.0"
11+
! CHECK-I386-SAME: "-L[[PREFIX]]/Inputs/basic_cross_linux_tree/usr/lib/gcc/i386-unknown-linux-gnu/10.2.0"
1212
! CHECK-I386-SAME: "-L[[PREFIX]]/Inputs/basic_cross_linux_tree/usr/lib/gcc/i386-unknown-linux-gnu/10.2.0/../../../../i386-unknown-linux-gnu/lib"
1313

1414
! RUN: %flang 2>&1 -### -v -o %t %s -no-integrated-as -fuse-ld=ld --target=x86_64-unknown-linux-gnu --gcc-install-dir=%S/Inputs/basic_cross_linux_tree/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0 | FileCheck %s --check-prefix=CHECK-X86-64
@@ -17,5 +17,5 @@
1717
! CHECK-X86-64: "-fc1" "-triple" "x86_64-unknown-linux-gnu"
1818
! CHECK-X86-64: "[[PREFIX:[^"]+]]/Inputs/basic_cross_linux_tree/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin{{/|\\\\}}as" "--64"
1919
! CHECK-X86-64: "[[PREFIX]]/Inputs/basic_cross_linux_tree/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin{{/|\\\\}}ld" {{.*}} "-m" "elf_x86_64"
20-
! CHECK-X86-64-SAME: "-L[[PREFIX]]/Inputs/basic_cross_linux_tree/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0"
20+
! CHECK-X86-64-SAME: "-L[[PREFIX]]/Inputs/basic_cross_linux_tree/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0"
2121
! CHECK-X86-64-SAME: "-L[[PREFIX]]/Inputs/basic_cross_linux_tree/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/lib"

flang/test/Driver/large-data-threshold.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
! RUN: %flang -### -c --target=x86_64 -mlarge-data-threshold=32768 %s 2>&1 | FileCheck %s --check-prefix=NO-MCMODEL
66
! RUN: %flang -### -c --target=x86_64 -mcmodel=small -mlarge-data-threshold=32768 %s 2>&1 | FileCheck %s --check-prefix=NO-MCMODEL
77
! RUN: not %flang -### -c --target=aarch64 -mcmodel=small -mlarge-data-threshold=32768 %s 2>&1 | FileCheck %s --check-prefix=NOT-SUPPORTED
8-
9-
8+
9+
1010
! CHECK: "{{.*}}flang" "-fc1"
1111
! CHECK-SAME: "-mlarge-data-threshold=32768"
1212
! CHECK-59000: "{{.*}}flang" "-fc1"

flang/test/Driver/lto-fatlto.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! REQUIRES: x86-registered-target
2-
! checks fatlto objects: that valid bitcode is included in the object file generated.
2+
! checks fatlto objects: that valid bitcode is included in the object file generated.
33

44
! RUN: %flang -fc1 -triple x86_64-unknown-linux-gnu -flto -ffat-lto-objects -emit-obj %s -o %t.o
55
! RUN: llvm-readelf -S %t.o | FileCheck %s --check-prefixes=ELF

0 commit comments

Comments
 (0)