[flang][NFC] Add select type test to check correct ordering
authorValentin Clement <clementval@gmail.com>
Fri, 7 Apr 2023 21:18:48 +0000 (14:18 -0700)
committerValentin Clement <clementval@gmail.com>
Fri, 7 Apr 2023 21:19:48 +0000 (14:19 -0700)
commit5315ca696169ae015b5aa56ab6c27aca21d633f7
treeb240ba7db0b38c5c359a13ace816d42c127c2af8
parentfffdb7eac58b4efde5e23c1281e7a7f93a42d280
[flang][NFC] Add select type test to check correct ordering

Somehow this test has been left behind in my sandbox. This
patch adds a lowering test for fir.select_type operation and
makes sure the dynamic type comaparison is done in the right
order when we have multiple CLASS IS type guard statement
for types that are linked.

This should have been posted with D138280.

Reviewed By: PeteSteinfeld

Differential Revision: https://reviews.llvm.org/D147807
flang/test/Lower/select-type-2.f90 [new file with mode: 0644]