llvm-project/flang/test
Riccardo Bertossa c2921d148e [flang] SAVE statement should not apply to nested scoping units
SAVE statement, according to 8.6.14, must apply to the same scoping
unit, that excludes nested scoping units. For example, if the SAVE
statement is found in a MODULE, the functions contained in that module
should not inherit the SAVE attribute. I think that the code was doing
this, failing the following source:

```
MODULE pippo
SAVE

CONTAINS
PURE FUNCTION fft_stick_index( )
   IMPLICIT NONE
   INTEGER :: fft_stick_index
   INTEGER :: mc  !error: A pure subprogram may not have a variable with the SAVE attribute
END FUNCTION

END MODULE
```

Differential Revision: https://reviews.llvm.org/D88279
2020-09-26 12:42:14 -07:00
..
Driver [flang] Version information in flang/f18 2020-09-01 19:05:43 +01:00
Evaluate [flang] Fix assert on constant folding of extended types 2020-09-10 14:34:03 -07:00
Fir [flang] Upstream recent work on FIR to llvm-project. 2020-04-27 17:48:57 -07:00
Flang-Driver [flang][driver] Add the new flang compiler and frontend drivers 2020-09-11 10:55:54 +01:00
Lower [flang][openacc] Handle optional end directive in combined construct 2020-08-13 14:05:00 -04:00
NonGtestUnit [flang] Run non-gtest unit tests with lit. 2020-07-24 14:49:39 +01:00
Parser [flang] Parse global compiler directives 2020-08-25 11:41:11 -07:00
Preprocessing [flang] Rework preprocessing of stringification 2020-09-18 10:45:57 -07:00
Semantics [flang] SAVE statement should not apply to nested scoping units 2020-09-26 12:42:14 -07: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][driver] Add the new flang compiler and frontend drivers 2020-09-11 10:55:54 +01:00
lit.cfg.py [flang][driver] Add the new flang compiler and frontend drivers 2020-09-11 10:55:54 +01:00
lit.site.cfg.py.in [flang][driver] Add the new flang compiler and frontend drivers 2020-09-11 10:55:54 +01:00