[LVI] Add trunc to i1 handling. (#124480)
[llvm-project.git] / libc / utils / hdrgen / tests / input / test_small.yaml
blob1d4b2990a30027b46859ddf55d7f36aa81cea56a
1 header: test_small.h
2 header_template: test_small.h.def
3 macros:
4   - macro_name: MACRO_A
5     macro_value: 1
6   - macro_name: MACRO_B
7     macro_value: 2
8 types:
9   - type_name: type_a
10   - type_name: type_b
11 enums:
12   - name: enum_a
13     value: value_1
14   - name: enum_b
15     value: value_2
16 objects:
17   - object_name: object_1
18     object_type: obj
19   - object_name: object_2
20     object_type: obj
21 functions:
22   - name: func_a
23     return_type: void
24     arguments: []
25     standards:
26       - stdc
27     attributes:
28       - CONST_FUNC_A
29   - name: func_b
30     return_type: float128
31     arguments: []
32     standards:
33       - stdc
34     guard: LIBC_TYPES_HAS_FLOAT128
35   - name: func_c
36     return_type: _Float16
37     arguments:
38       - type: int
39       - type: float
40     standards:
41       - stdc
42     guard: LIBC_TYPES_HAS_FLOAT16
43   - name: func_d
44     return_type: _Float16
45     arguments:
46       - type: int
47       - type: float
48     standards:
49       - stdc
50     guard: LIBC_TYPES_HAS_FLOAT16
51   - name: func_e
52     return_type: _Float16
53     arguments:
54       - type: float128
55     standards:
56       - stdc
57     guard: LIBC_TYPES_HAS_FLOAT16_AND_FLOAT128
58   - name: func_f
59     return_type: _Float16
60     arguments:
61       - type: int
62       - type: double
63       - type: float
64     standards:
65       - stdc