Some libcs define non-standard FE_* macros and include them in
FE_ALL_EXCEPT. This change adjusts the fenv tests so that the
non-standard FE_* macros do not interfere when compiled with
fenv.h from another libc.
Details
Details
- Reviewers
sivachandra - Commits
- rGcb2e2d506814: [libc] Small adjustments to fenv tests
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libc/test/src/fenv/enabled_exceptions_test.cpp | ||
---|---|---|
30 | Add a comment here, something like: We '|' the individual exception flags instead of using FE_ALL_EXCEPT as it can include non-standard extensions. Note that we should be able to compile this file with headers from other libcs as well. | |
libc/test/src/fenv/exception_status_test.cpp | ||
114 | You should be able to use allExcepts below instead of FE_ALL_EXCEPT? |
Add a comment here, something like: