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

feat: error resilient intrinsic function #5326

Merged
merged 3 commits into from
Nov 10, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: add and register
  • Loading branch information
HarshitaKalani committed Nov 10, 2024
commit 0ad9a5340d372b311d6862d387eebec85d8d401f
8 changes: 8 additions & 0 deletions tests/errors/array_size_01_cc.f90
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
program arrays_01
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
program arrays_01
program array_size_01_cc

Let's do it in subsequent PRs.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I'll do that! Thanks!

implicit none
integer :: a(3)
integer :: size_a
size_a = size(a, 1, 4, kind=4)
size_a = size()
print *, "compilation continued despite errors"
end program
4 changes: 4 additions & 0 deletions tests/tests.toml
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,10 @@ julia = true
filename = "errors/array_size_01.f90"
asr = true

[[test]]
filename = "errors/array_size_01_cc.f90"
continue_compilation = true

[[test]]
filename = "errors/array_size_02.f90"
asr = true
Expand Down