Skip to content

Commit cec9dc6

Browse files
committed
Visual Studio: fix feraiseexcept test failure
We have a test that checks that our own implementation of feraiseexcept triggers an assertion failure when a non-zero argument is given. This test now fails since Visual Studio has a macro for feraiseexcept. This commit uses #undef to avoid Visual Studio's macro.
1 parent 9411c77 commit cec9dc6

File tree

1 file changed

+4
-0
lines changed
  • regression/cbmc-library/feraiseexcept-01

1 file changed

+4
-0
lines changed

regression/cbmc-library/feraiseexcept-01/main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#include <assert.h>
22
#include <fenv.h>
33

4+
// Avoid using a macro defined by the library,
5+
// we want to test our own implementation.
6+
#undef feraiseexcept
7+
48
int main()
59
{
610
int exceptions;

0 commit comments

Comments
 (0)