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

Test test_CanHaveNestedTryBlocksInASingleFunction_ThrowOutside fails with O2 or O3 optimization levels #28

Closed
cchciose opened this issue Oct 25, 2023 · 0 comments

Comments

@cchciose
Copy link

As mentioned in the title, the test test_CanHaveNestedTryBlocksInASingleFunction_ThrowOutside (file TestException.c) fails if compiled with -O2 or -O3.

This is due to the volatile qualifier missing when declaring int i = 0; (line 284).

The test succeeds if i is declared as volatile.

This is documented in docs/CException.md, Limitations point 2.

mvandervoord added a commit that referenced this issue Mar 8, 2024
Fix bug in tests (lack of volatile) (Issue #28)
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

No branches or pull requests

2 participants