[flang] Add executable tests for conditional expressions (F2023) - #1
[flang] Add executable tests for conditional expressions (F2023)#1cenewcombe wants to merge 2 commits into
Conversation
|
Do you have a test that checks for an errant evaluation of a non-used consequent? |
Yep, we have
|
|
I've updated two of the conditional arguments tests to remove parentheses for chained conditional-arg: This matches my understanding of the discussion regarding conditional arguments, but please let me know if I've misunderstood. These tests are not currently enabled, but I want to port them as we'd expect to run them. I've left the conditional expressions tests as-is since extra parentheses should be OK in that case. |
9e5092c to
1db5404
Compare
1db5404 to
7ffeb56
Compare
I ported over the tests we had in tst90 for conditional expressions. The
CMakeLists.txtfile excludes tests with conditional arguments for now. This can be altered once the feature is implemented with support for .NIL.Let me know if this follows the correct format for porting from tst90.
I'll keep this PR in my fork until the conditional expressions feature work is ready to go upstream.