Skip to content

Commit 11a766c

Browse files
authored
[Fortran][gfortran] Disable is_contiguous_1 that is nonconformant (#33)
is_contiguous_1.f90 explicitly says that it is testing for an IS_CONTIGUOUS result with zero sized array that goes against what is required in the standard. Zero and one sized array are contiguous, even when obtained with triplet strides that are not ones. Flang behavior will be standard conformant and align with ifort and nagfor after llvm/llvm-project#68869. So this test needs to be disable. Move is_contiguous_3.f90 under the same comment since it is failing for the same valid reason (except IS_CONTIGUOUS was folded at compile time and therefore already correct with flang).
1 parent d65d2b9 commit 11a766c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Fortran/gfortran/regression/DisabledFiles.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2167,7 +2167,6 @@ file(GLOB FAILING_FILES CONFIGURE_DEPENDS
21672167
io_real_boz.f90
21682168
iostat_4.f90
21692169
iostat_5.f90
2170-
is_contiguous_3.f90
21712170
large_real_kind_1.f90
21722171
large_unit_1.f90
21732172
list_directed_large.f90
@@ -2497,6 +2496,10 @@ file(GLOB FAILING_FILES CONFIGURE_DEPENDS
24972496
string_1_lp64.f90
24982497
substr_10.f90
24992498

2499+
# Tests that expect nonconformant IS_CONTIGUOUS answers with zero size arrays.
2500+
is_contiguous_1.f90
2501+
is_contiguous_3.f90
2502+
25002503
# Tests that are errors in gfortran but for which we emit adequate warnings; might need to use -pedantic to see them
25012504
achar_3.f90
25022505
achar_5.f90

0 commit comments

Comments
 (0)