| 1 |
//===-- C standard library header test_small-------------------------------===// |
| 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 |
//===----------------------------------------------------------------------===// |
| 8 |
|
| 9 |
#ifndef LLVM_LIBC_TEST_SMALL_H |
| 10 |
#define LLVM_LIBC_TEST_SMALL_H |
| 11 |
|
| 12 |
#include "__llvm-libc-common.h" |
| 13 |
#include "llvm-libc-macros/float16-macros.h" |
| 14 |
#include "llvm-libc-macros/test_small-macros.h" |
| 15 |
#include "llvm-libc-types/float128.h" |
| 16 |
|
| 17 |
#define MACRO_A 1 |
| 18 |
|
| 19 |
#define MACRO_B 2 |
| 20 |
|
| 21 |
#include <llvm-libc-types/type_a.h> |
| 22 |
#include <llvm-libc-types/type_b.h> |
| 23 |
|
| 24 |
enum { |
| 25 |
enum_a = value_1, |
| 26 |
enum_b = value_2, |
| 27 |
}; |
| 28 |
|
| 29 |
__BEGIN_C_DECLS |
| 30 |
|
| 31 |
CONST_FUNC_A void func_a() __NOEXCEPT; |
| 32 |
|
| 33 |
#ifdef LIBC_TYPES_HAS_FLOAT128 |
| 34 |
float128 func_b() __NOEXCEPT; |
| 35 |
#endif // LIBC_TYPES_HAS_FLOAT128 |
| 36 |
|
| 37 |
#ifdef LIBC_TYPES_HAS_FLOAT16 |
| 38 |
_Float16 func_c(int, float) __NOEXCEPT; |
| 39 |
|
| 40 |
_Float16 func_d(int, float) __NOEXCEPT; |
| 41 |
#endif // LIBC_TYPES_HAS_FLOAT16 |
| 42 |
|
| 43 |
#ifdef LIBC_TYPES_HAS_FLOAT16_AND_FLOAT128 |
| 44 |
_Float16 func_e(float128) __NOEXCEPT; |
| 45 |
#endif // LIBC_TYPES_HAS_FLOAT16_AND_FLOAT128 |
| 46 |
|
| 47 |
extern obj object_1; |
| 48 |
extern obj object_2; |
| 49 |
|
| 50 |
__END_C_DECLS |
| 51 |
|
| 52 |
#endif // LLVM_LIBC_TEST_SMALL_H |