Skip to content

Commit

Permalink
fix sema tests on Windows
Browse files Browse the repository at this point in the history
On Windows '%flang1' is interpreted incorrectly as 'flang.exe1'. This change assumes that flang1 executable is in the user's path.
  • Loading branch information
tdusnoki committed Jun 27, 2023
1 parent a3bd452 commit d2af8f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/sema/aconst_with_null_subict.f90
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
! Ensure that flang1 successfully produces correct symbol table entries for the
! empty derived type S, the array A, as well as the array constructor [S()].

! RUN: %flang1 %s -opt 0 -q 0 1 -q 47 1 | FileCheck %s
! RUN: flang1 %s -opt 0 -q 0 1 -q 47 1 | FileCheck %s
! CHECK: datatype:[[STYPE:[0-9]+]] Derived member:1 size:0
! CHECK: datatype:[[ATYPE:[0-9]+]] Array type:[[STYPE]] dims:1
! CHECK: datatype:[[CTYPE:[0-9]+]] Array type:[[STYPE]] dims:1
Expand Down
2 changes: 1 addition & 1 deletion test/sema/implied_do.f90
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
! SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
!

! RUN: %flang1 %s | FileCheck %s
! RUN: flang1 %s | FileCheck %s
! CHECK: procedure:Program
! CHECK-DAG: s:[[FUNC:[0-9]+]] {{.*}}:func
! CHECK-DAG: s:[[REALLOC:[0-9]+]] {{.*}}:f90_realloc_arr_in_impiled_do
Expand Down
2 changes: 1 addition & 1 deletion test/sema/sconst_with_null_subc.f90
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
! Ensure that flang1 generates a flag for empty derived type to mark null subc
! when exporting typedef initialization to MOD file.

! RUN: %flang1 %s
! RUN: flang1 %s
! RUN: FileCheck %s --input-file=./sconst_with_null_subc.mod
! RUN: rm -f ./sconst_with_null_subc.mod
module sconst_with_null_subc
Expand Down

0 comments on commit d2af8f4

Please sign in to comment.