Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: offer macros for invoking the assert subroutine only when -DDEBUG is passed #29

Merged
merged 8 commits into from
Aug 7, 2024

Conversation

rouson
Copy link
Contributor

@rouson rouson commented Aug 7, 2024

No description provided.

rouson added 8 commits August 3, 2024 18:10
This commit adds the following macros to facilitate the complete removal of
calls to the 'assert' subroutine when the new DEBUG macro is not set:

  - call_assert
  - call_assert_describe
  - call_assert_diagnose
This commit adds unit tests for the types, kinds, and ranks
supported by the intrinsic_array_t's constructor and as_character()
type-bound procedure, verifying that the procedure result  is a
readable string representation of each supported array type, kind,
and rank):

Ranks 1-3 of

- Complex
- Double precision
- Double-precision complex
- Default integer
- Default logical
- Default real
This commit works around a LLVM Flang (flang-new) issue that prevents
test-assert-subroutine-error-termination.F90 from
1. Quietly executing false-assertion.f90 and
2. Detecting the exit status from false-assertion.f90.
@rouson rouson merged commit d853532 into main Aug 7, 2024
4 checks passed
@rouson rouson deleted the assert-macros branch August 7, 2024 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant