Add a test with standard-conforming non-conforming lcobound() intrinsic function invocations. Also test that several non-conforming lcobound() invocations generate the correct error messages.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Since lcobound is not yet implemented, please remove the TBD error messages and add the one error message I mention in the code, so that the test can pass until it is implemented. Thanks.
flang/test/Semantics/lcobound.f90 | ||
---|---|---|
12 | Please add !ERROR: No explicit type declared for 'lcobound' before line 12. |
The test looks great and tests a lot of different ways to violate the standard, but I have one suggestion. I would recommend adding a call to lcobound where a non-constant integer is passed to the kind argument, as the standard requires that it shall be a scalar integer constant expression.
Additionally, in the section of this test that sets out to have only calls that are standard-conforming, please make sure that the result of the calls are being assigned to a variable that is a scalar if the dim argument is present, and are being assigned to a variable that is an array if the dim argument in not present.
- Fixed left-hand-side of assignments where array is required because dim argument is not present.
- Test requirement that the kind parameters be an integer constant.
- Test violation of rank requirement for dim argument.
Please add !ERROR: No explicit type declared for 'lcobound' before line 12.