1 //===-- Unittests for isfinite macro --------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
8 #include "include/llvm-libc-macros/math-function-macros.h"
12 // check if macro is defined
14 #error "isfinite macro is not defined"
17 assert(isfinite(1.0f
));
18 assert(isfinite(1.0));
19 assert(isfinite(1.0L));