summaryrefslogtreecommitdiff
path: root/libc/test/src/fenv/enabled_exceptions_test.cpp
diff options
context:
space:
mode:
authorMichael Jones <michaelrj@google.com>2021-12-21 13:12:45 -0800
committerMichael Jones <michaelrj@google.com>2021-12-22 10:53:25 -0800
commit25226f3e4a42f70124995c16e22ff870efa30c6d (patch)
tree820e2f5708486d237007a8edb807fd0043782e7c /libc/test/src/fenv/enabled_exceptions_test.cpp
parent8b58344efb2ea3bab28e373d7f9113a200742684 (diff)
[libc] apply formatting to tests
Apply the formatting rules that were applied to the libc/src directory to the libc/test directory, as well as the files in libc/utils that are included by the tests. This does not include automated enforcement. Reviewed By: sivachandra, lntue Differential Revision: https://reviews.llvm.org/D116127
Diffstat (limited to 'libc/test/src/fenv/enabled_exceptions_test.cpp')
-rw-r--r--libc/test/src/fenv/enabled_exceptions_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/test/src/fenv/enabled_exceptions_test.cpp b/libc/test/src/fenv/enabled_exceptions_test.cpp
index acc3b09d4aca..75463c34898a 100644
--- a/libc/test/src/fenv/enabled_exceptions_test.cpp
+++ b/libc/test/src/fenv/enabled_exceptions_test.cpp
@@ -46,7 +46,7 @@ TEST(LlvmLibcExceptionStatusTest, RaiseAndCrash) {
// 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.
- constexpr int allExcepts =
+ constexpr int ALL_EXCEPTS =
FE_DIVBYZERO | FE_INVALID | FE_INEXACT | FE_OVERFLOW | FE_UNDERFLOW;
for (int e : excepts) {
@@ -59,7 +59,7 @@ TEST(LlvmLibcExceptionStatusTest, RaiseAndCrash) {
// can raise FE_INEXACT as well, we don't verify the other
// exception flags when FE_INEXACT is enabled.
if (e != FE_INEXACT) {
- int others = allExcepts & ~e;
+ int others = ALL_EXCEPTS & ~e;
ASSERT_EQ(__llvm_libc::feraiseexcept(others), 0);
ASSERT_EQ(__llvm_libc::fetestexcept(others), others);
}