llvm-project/flang/test
Pete Steinfeld 38095549c6 [flang] Constraint checks C751 to C760
Summary:
Many of these were already implemented, and I just annotated the tests and/or
the code.

C752 was a simple check to verify that CONTIGUOUS components are arrays with

C754 proved to be virtually identical to C750 that I implemented previously.
This caused me to remove the distinction between specification expressions for
type parameters and bounds expressions that I'd previously created.
the POINTER attribute.

I also changed the error messages to specify that errors in specification
expressions could arise from either bad derived type components or type
parameters.

In cases where we detect a type param that was not declared, I created a symbol
marked as erroneous.  That avoids subsequent semantic process for expressions
containing the symbol.  This change caused me to adjust tests resolve33.f90 and
resolve34.f90.  Also, I avoided putting out error messages for erroneous type
param symbols in `OkToAddComponent()` in resolve-names.cpp and in
`EvaluateParameters()`, type.cpp.

C756 checks that procedure components have the POINTER attribute.

Reviewers: tskeith, klausler, DavidTruby

Subscribers: llvm-commits

Tags: #llvm, #flang

Differential Revision: https://reviews.llvm.org/D79798
2020-05-15 18:50:14 -07:00
..
Driver [flang] Port all remaining regression tests to lit 2020-03-13 11:58:11 +00:00
Evaluate [flang][NFC] Simplify semantics test scripts 2020-05-11 11:49:25 -07:00
Fir [flang] Upstream recent work on FIR to llvm-project. 2020-04-27 17:48:57 -07:00
Lower [flang][NFC] Simplify semantics test scripts 2020-05-11 11:49:25 -07:00
Preprocessing [flang] Added CMakeLists changes, moved config and made test scripts compatible. 2020-03-13 13:54:24 +00:00
Semantics [flang] Constraint checks C751 to C760 2020-05-15 18:50:14 -07:00
CMakeLists.txt [flang][NFC] Simplify semantics test scripts 2020-05-11 11:49:25 -07:00
lit.cfg.py [flang][NFC] Simplify semantics test scripts 2020-05-11 11:49:25 -07:00
lit.site.cfg.py.in [flang] Fix bug in tests for standalone build 2020-05-05 11:08:23 -07:00