llvm-project/flang/test
Peter Steinfeld 63200a058e [flang] Sort symbols by creation order
We have a "<" operator defined on the type semantics::Symbol that's based on
the symbols' locations in the cooked character stream.  This is potentially
problematic when comparing symbols from .mod files when the cooked character
streams themselves might be allocated to varying memory locations.

This change fixes that by using the order in which symbols are created as the
basis for the "<" operator.  Thanks to Tim and Peter for consultation on the
necessity of doing this and the idea for what to use as the basis of the sort.

This change in the "<" operator changed the expected results for three of the
tests.  I manually inspected the new results, and they look OK to me.  The
differences in data05.f90 and typeinfo01.f90 are entirely the order, offsets,
and sizes of the derived type components.  The changes in resolve102.f90 are
due to the new, different "<" operator used for sorting.

Differential Revision: https://reviews.llvm.org/D98225
2021-03-09 12:35:32 -08:00
..
Driver [flang] Add -J and -module-dir to f18 driver 2021-02-22 09:03:31 -08:00
Evaluate [flang][f18] Make -fdebug-dump-{symbols|parse-tree} imply -fsyntax-only 2021-02-16 09:22:32 +00:00
Fir [flang][fir] Add FIR Types parser diagnostic tests + cleanup 2021-03-05 14:58:44 -05:00
Flang-Driver [flang][driver] Refine tests for module search directories 2021-03-09 15:26:48 +00:00
Frontend [flang][test] Share all driver test dirs between `f18` and `flang-new` 2021-02-23 18:21:32 +00:00
Lower [flang][driver] Add debug measure-parse-tree and pre-fir-tree options 2021-02-19 11:27:54 +00:00
NonGtestUnit [flang] Run non-gtest unit tests with lit. 2020-07-24 14:49:39 +01:00
Parser [flang][driver] Add options for unparsing 2021-02-16 09:32:51 +00:00
Preprocessing [flang][driver] Update PP tests to use the new driver 2021-01-25 12:32:23 +00:00
Semantics [flang] Sort symbols by creation order 2021-03-09 12:35:32 -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][fir] Add fir-opt tool 2021-02-16 11:48:40 -05:00
lit.cfg.py [flang][test] Share all driver test dirs between `f18` and `flang-new` 2021-02-23 18:21:32 +00:00
lit.site.cfg.py.in [flang][driver] Add the new flang compiler and frontend drivers 2020-09-11 10:55:54 +01:00