Revert "[lldb][test] Remove compiler version check and use regex" (#124101)
[llvm-project.git] / libc / test / src / fenv / excepts.h
blobe9517d319a9b79a22febc36c0febb358ab98d783
1 //===-- List of all FE_* constants for tests -----------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===---------------------------------------------------------------------===//
9 #ifndef LLVM_LIBC_TEST_SRC_FENV_EXCEPTS_H
10 #define LLVM_LIBC_TEST_SRC_FENV_EXCEPTS_H
12 #include "hdr/fenv_macros.h"
14 constexpr int EXCEPTS[] = {
15 FE_DIVBYZERO, FE_INVALID, FE_INEXACT, FE_OVERFLOW, FE_UNDERFLOW,
18 // We '|' the individual exception flags instead of using FE_ALL_EXCEPT
19 // as it can include non-standard extensions. Note that we should be able
20 // to compile this file with headers from other libcs as well.
21 constexpr int ALL_EXCEPTS =
22 FE_DIVBYZERO | FE_INVALID | FE_INEXACT | FE_OVERFLOW | FE_UNDERFLOW;
24 #endif // LLVM_LIBC_TEST_SRC_FENV_EXCEPTS_H