//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // UNSUPPORTED: c++03, c++11, c++14, c++17, c++20 // ADDITIONAL_COMPILE_FLAGS(gcc-style-warnings): -Wno-unused-value #include #include "type_algorithms.h" void func() { std::numeric_limits::has_denorm; // expected-warning {{'has_denorm' is deprecated}} std::numeric_limits::has_denorm_loss; // expected-warning {{'has_denorm_loss' is deprecated}} std::numeric_limits::denorm_min(); std::numeric_limits::has_denorm; // expected-warning {{'has_denorm' is deprecated}} std::numeric_limits::has_denorm_loss; // expected-warning {{'has_denorm_loss' is deprecated}} std::numeric_limits::denorm_min(); std::numeric_limits::has_denorm; // expected-warning {{'has_denorm' is deprecated}} std::numeric_limits::has_denorm_loss; // expected-warning {{'has_denorm_loss' is deprecated}} std::numeric_limits::denorm_min(); std::numeric_limits::has_denorm; // expected-warning {{'has_denorm' is deprecated}} std::numeric_limits::has_denorm_loss; // expected-warning {{'has_denorm_loss' is deprecated}} std::numeric_limits::denorm_min(); std::numeric_limits::has_denorm; // expected-warning {{'has_denorm' is deprecated}} std::numeric_limits::has_denorm_loss; // expected-warning {{'has_denorm_loss' is deprecated}} std::numeric_limits::denorm_min(); std::numeric_limits::has_denorm; // expected-warning {{'has_denorm' is deprecated}} std::numeric_limits::has_denorm_loss; // expected-warning {{'has_denorm_loss' is deprecated}} std::numeric_limits::denorm_min(); std::numeric_limits::has_denorm; // expected-warning {{'has_denorm' is deprecated}} std::numeric_limits::has_denorm_loss; // expected-warning {{'has_denorm_loss' is deprecated}} std::numeric_limits::denorm_min(); std::numeric_limits::has_denorm; // expected-warning {{'has_denorm' is deprecated}} std::numeric_limits::has_denorm_loss; // expected-warning {{'has_denorm_loss' is deprecated}} std::numeric_limits::denorm_min(); std::numeric_limits::has_denorm; // expected-warning {{'has_denorm' is deprecated}} std::numeric_limits::has_denorm_loss; // expected-warning {{'has_denorm_loss' is deprecated}} std::numeric_limits::denorm_min(); std::numeric_limits::has_denorm; // expected-warning {{'has_denorm' is deprecated}} std::numeric_limits::has_denorm_loss; // expected-warning {{'has_denorm_loss' is deprecated}} std::numeric_limits::denorm_min(); std::numeric_limits::has_denorm; // expected-warning {{'has_denorm' is deprecated}} std::numeric_limits::has_denorm_loss; // expected-warning {{'has_denorm_loss' is deprecated}} std::numeric_limits::denorm_min(); std::numeric_limits::has_denorm; // expected-warning {{'has_denorm' is deprecated}} std::numeric_limits::has_denorm_loss; // expected-warning {{'has_denorm_loss' is deprecated}} std::numeric_limits::denorm_min(); std::numeric_limits::has_denorm; // expected-warning {{'has_denorm' is deprecated}} std::numeric_limits::has_denorm_loss; // expected-warning {{'has_denorm_loss' is deprecated}} std::numeric_limits::denorm_min(); std::numeric_limits::has_denorm; // expected-warning {{'has_denorm' is deprecated}} std::numeric_limits::has_denorm_loss; // expected-warning {{'has_denorm_loss' is deprecated}} std::numeric_limits::denorm_min(); std::numeric_limits::has_denorm; // expected-warning {{'has_denorm' is deprecated}} std::numeric_limits::has_denorm_loss; // expected-warning {{'has_denorm_loss' is deprecated}} std::numeric_limits::denorm_min(); std::numeric_limits::has_denorm; // expected-warning {{'has_denorm' is deprecated}} std::numeric_limits::has_denorm_loss; // expected-warning {{'has_denorm_loss' is deprecated}} std::numeric_limits::denorm_min(); std::numeric_limits::has_denorm; // expected-warning {{'has_denorm' is deprecated}} std::numeric_limits::has_denorm_loss; // expected-warning {{'has_denorm_loss' is deprecated}} std::numeric_limits::denorm_min(); std::numeric_limits::has_denorm; // expected-warning {{'has_denorm' is deprecated}} std::numeric_limits::has_denorm_loss; // expected-warning {{'has_denorm_loss' is deprecated}} std::numeric_limits::denorm_min(); std::numeric_limits::has_denorm; // expected-warning {{'has_denorm' is deprecated}} std::numeric_limits::has_denorm_loss; // expected-warning {{'has_denorm_loss' is deprecated}} std::numeric_limits::denorm_min(); std::numeric_limits::has_denorm; // expected-warning {{'has_denorm' is deprecated}} std::numeric_limits< const volatile long double>::has_denorm_loss; // expected-warning {{'has_denorm_loss' is deprecated}} std::numeric_limits::denorm_min(); std::denorm_indeterminate; // expected-warning {{'denorm_indeterminate' is deprecated}} std::denorm_absent; // expected-warning {{'denorm_absent' is deprecated}} std::denorm_present; // expected-warning {{'denorm_present' is deprecated}} }