[flang-commits] [PATCH] D159467: [flang][test] Move two tests around in DisabledFiles.cmake

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Sep 6 09:41:06 PDT 2023


klausler created this revision.
klausler added reviewers: tarunprabhu, sscalpone.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a project: All.
klausler requested review of this revision.

Move two tests into the section of tests for which flang emits
valid errors for usage that gfortran accepts.  Neither of them  
would be suitable as extensions -- one could change the behavior
of existing code, and the other is ambiguous.


Repository:
  rT test-suite

https://reviews.llvm.org/D159467

Files:
  Fortran/gfortran/regression/DisabledFiles.cmake


Index: Fortran/gfortran/regression/DisabledFiles.cmake
===================================================================
--- Fortran/gfortran/regression/DisabledFiles.cmake
+++ Fortran/gfortran/regression/DisabledFiles.cmake
@@ -1624,7 +1624,7 @@
   # These tests are skipped because they result in a compile error. This may
   # be the result of them exercising unsupported extensions that are not
   # supported in flang or some other reason. If there are multiple errors
-  # in a single file, each unique error message will be provided.
+  # in a single file, each distinct error message will be provided.
 
   # error: Entity in ALLOCATE statement must have the ALLOCATABLE or POINTER
   # attribute
@@ -1637,7 +1637,6 @@
 
   # error: The left-hand side of a pointer assignment is not definable
   PR100094.f90
-  associate_42.f90
 
   # error: Assumed-rank array cannot be forwarded to '[var]=' argument
   PR100906.f90
@@ -1687,10 +1686,6 @@
   bind-c-contiguous-3.f90
   bind-c-intent-out.f90
 
-  # error: '[SYM]' may not appear in NULLIFY because '[SYM2]' is an INTENT(IN)
-  # dummy argument
-  pointer_intent_1.f90
-
   # error: Assumed type argument requires an explicit interface
   assumed_type_2a.f90
 
@@ -2840,6 +2835,10 @@
   whole_file_10.f90
   # Valid error: Values in array constructor must have the same declared type when no explicit type appears
   zero_sized_12.f90
+  # Valid errors: attempts to modify pointer component of INTENT(IN) argument
+  pointer_intent_1.f90
+  # Valid error: ASSOCIATE entities are not pointers
+  associate_42.f90
 
   # Not yet implemented in evaluate / semantics
   # IMAGE_INDEX not (yet) an intrinsic function


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159467.556050.patch
Type: text/x-patch
Size: 1673 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230906/81447674/attachment-0001.bin>


More information about the flang-commits mailing list