[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libcxx / test / std / language.support / support.limits / limits / round.style / check_values.pass.cpp
blobe40526c7d02248445c523528f6431fe43661077e
1 //===----------------------------------------------------------------------===//
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 // ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DISABLE_DEPRECATION_WARNINGS
11 // test numeric_limits
13 // float_denorm_style
15 #include <limits>
17 #include "test_macros.h"
19 typedef char one;
20 struct two {one _[2];};
22 one test(std::float_denorm_style);
23 two test(int);
25 int main(int, char**)
27 static_assert(std::denorm_indeterminate == -1,
28 "std::denorm_indeterminate == -1");
29 static_assert(std::denorm_absent == 0,
30 "std::denorm_absent == 0");
31 static_assert(std::denorm_present == 1,
32 "std::denorm_present == 1");
33 static_assert(sizeof(test(std::denorm_present)) == 1,
34 "sizeof(test(std::denorm_present)) == 1");
35 static_assert(sizeof(test(1)) == 2,
36 "sizeof(test(1)) == 2");
38 return 0;