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.
As mentioned in the title, the test
test_CanHaveNestedTryBlocksInASingleFunction_ThrowOutside
(fileTestException.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.