llvm-project/flang/test
Peter Steinfeld 571673ce39 [flang] Disallow BOZ literal constants as output list items
According to C7109, "A boz-literal-constant shall appear only as a
data-stmt-constant in a DATA statement, or where explicitly allowed in
16.9 as an actual argument of an intrinsic procedure."  This change
enforces that constraint for output list items.

I also added a general interface to determine if an expression is a BOZ
literal constant and changed all of the places I could find where it
could be used.

I also added a test.

This change stemmed from the following issue --
  https://gitlab-master.nvidia.com/fortran/f18-stage/issues/108

Differential Revision: https://reviews.llvm.org/D106893
2021-07-27 13:01:26 -07:00
..
Driver [flang][driver] Add `-fno-analyzed-objects-for-unparse` 2021-06-25 13:28:12 +01:00
Evaluate [flang] Fold more reduction intrinsic function calls 2021-06-21 10:13:59 -07:00
Fir [flang][fir] Add the pre-code gen rewrite pass and codegen ops. 2021-03-24 19:27:10 -07:00
Frontend [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +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] Update the regression tests to use the new driver when enabled 2021-04-15 08:52:23 +00:00
Preprocessing [flang][windows] Run regression tests under Windows. NFCI. 2021-06-10 05:13:44 -05:00
Runtime [flang] Check there's no dependency on C++ libs. NFC 2021-06-16 11:38:25 +00:00
Semantics [flang] Disallow BOZ literal constants as output list items 2021-07-27 13:01:26 -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][nfc] Simplify CMake 2021-07-12 17:11:33 +00:00
lit.cfg.py [flang] Check there's no dependency on C++ libs. NFC 2021-06-16 11:38:25 +00:00
lit.site.cfg.py.in [flang] Check there's no dependency on C++ libs. NFC 2021-06-16 11:38:25 +00:00