llvm-project/flang/test
PeixinQiao dd8c8d4b7c This patch supports the following checks for THREADPRIVATE Directive:
```
[5.1] 2.21.2 THREADPRIVATE Directive
A variable that appears in a threadprivate directive must be declared in
the scope of a module or have the SAVE attribute, either explicitly or
implicitly.
A variable that appears in a threadprivate directive must not be an
element of a common block or appear in an EQUIVALENCE statement.
```

This patch supports the following checks for DECLARE TARGET Directive:
```
[5.1] 2.14.7 Declare Target Directive
A variable that is part of another variable (as an array, structure
element or type parameter inquiry) cannot appear in a declare
target directive.
A variable that appears in a declare target directive must be declared
in the scope of a module or have the SAVE attribute, either explicitly
or implicitly.
A variable that appears in a declare target directive must not be an
element of a common block or appear in an EQUIVALENCE statement.
```

As Fortran 2018 standard [8.5.16] states, a variable, common block, or
procedure pointer declared in the scoping unit of a main program,
module, or submodule implicitly has the SAVE attribute, which may be
confirmed by explicit specification.

Reviewed By: kiranchandramohan

Differential Revision: https://reviews.llvm.org/D109864
2021-10-17 22:08:02 +08:00
..
Driver [flang][driver] Add actions that execute despite semantic errors 2021-10-11 11:52:05 +00:00
Evaluate [flang] Fold LGE/LGT/LLE/LLT intrinsic functions 2021-10-14 15:24:03 -07:00
Examples [Flang] Fix failing plugin tests 2021-09-29 09:27:11 +00:00
Fir [MLIR] Replace std ops with arith dialect ops 2021-10-13 03:07:03 +00:00
Frontend [flang][nfc] Remove `flang-new-driver` from LIT 2021-08-13 08:17:40 +00:00
Lower [flang] Update the regression tests to use the new driver when enabled 2021-04-15 08:52:23 +00:00
NonGtestUnit [flang] Run non-gtest unit tests with lit. 2020-07-24 14:49:39 +01:00
Parser [flang] Catch mismatched parentheses in prescanner 2021-10-06 14:00:15 -07:00
Preprocessing [flang][nfc] Add a regression test for #50993 2021-08-02 18:21:23 +00:00
Runtime Reland "[flang] GET_COMMAND_ARGUMENT runtime implementation" 2021-09-28 12:34:07 +00:00
Semantics This patch supports the following checks for THREADPRIVATE Directive: 2021-10-17 22:08:02 +08:00
Unit [flang] unit test support for out-of-tree and in-tree using google tests framework 2020-06-15 22:09:56 +05:30
CMakeLists.txt [Flang] Fix failing plugin tests 2021-09-29 09:27:11 +00:00
lit.cfg.py [flang] Move runtime API headers to flang/include/flang/Runtime 2021-09-03 11:08:34 -07:00
lit.site.cfg.py.in [flang] Refine output file generation 2021-08-21 15:18:48 +00:00