This patch checks for valid and invalid forms of calls to the collective subroutine co_min.
Details
Diff Detail
Event Timeline
I'm guessing that this won't pass "git clang-format" (although I don't know if test files are checked. I'll check and let you know offline.
I couldn’t get "git clang-format" to work on my system after installing it with homebrew. Any advice on how using clang-format is welcome.
I just build clang. One of the executables that gets built is clang-format. I don't use git clang-format. Note that the official version of clang-format is from release 12.
It's specific to C/C++. But I usually run it on both the source code and on any tests written in C/C++ (like some of the runtime tests).
I see, that makes sense. Since Damian's test is in Fortran, the tool won't make any changes then. Does that mean that the style and formatting of code in Fortran tests in llvm-project does not have to match any particular style or formatting?
I personally would much prefer that it matches existing tests. But, as far as I know, there are no automated tools that will flag Fortran formatting inconsistencies.
I completely disagree. The more variations of style that the tests can present to parsing and semantics, the more test coverage we get.
- Add co_min test to expectedly failed list.
- Replaced non-ASCII characters.
- Correct expected error message.
- Update run directive to use test_errors.py.
- Expand the coverage of argument types to include characters.
- Vary the types of argument 'a' more throughout the test.
- Group like calls into blocks with a leading comment describing the block.
Update co_min test to be uniform with co_max test:
- Expand types tested for argument 'a'.
- Vary the types tested more throughout the test.
- Replace several "to be determined" error messages.
- Fix typo: remove extraneous comma.
- Clarify the "To Do" comment.