llvm-project/flang/test
Pete Steinfeld f72106e2a3 [flang] Fix an assert when RESHAPE() is called on empty strings
Summary:
When a constant array of empty strings goes through contant folding, the result
is something that contains no bytes.  If this array is passed to the intrinsic
function `RESHAPE()`, we were not handling things correctly.  I fixed this by
checking for an empty destination when calling the function `CopyFrom()` on an
array of strings.

I also added a test with a couple of different examples that trigger the
problem.

Reviewers: klausler, tskeith, DavidTruby

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D84352
2020-07-22 12:21:58 -07:00
..
Driver [flang] Port all remaining regression tests to lit 2020-03-13 11:58:11 +00:00
Evaluate [flang] AMAX0, MIN1... rewrite to MAX/MIN: make result conversion explicit 2020-06-18 08:14:58 +02:00
Fir [flang] Upstream recent work on FIR to llvm-project. 2020-04-27 17:48:57 -07:00
Lower [flang] Implemented 2 Semantic checks for DATA statement and fixed a few bugs 2020-06-03 10:33:26 +05:30
Parser [flang] Fix source line continuation in potential macro calls (bugzilla 46768) 2020-07-21 18:21:35 -07:00
Preprocessing [flang] Added CMakeLists changes, moved config and made test scripts compatible. 2020-03-13 13:54:24 +00:00
Semantics [flang] Fix an assert when RESHAPE() is called on empty strings 2020-07-22 12:21:58 -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]Fix individual tests with lit when building out of tree 2020-06-22 10:30:33 +05:30
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