Skip to content

Commit b505d3e

Browse files
committed
update float16 testing
1 parent 304a9c1 commit b505d3e

File tree

2 files changed

+49
-70
lines changed

2 files changed

+49
-70
lines changed

bindgen-tests/tests/expectations/tests/libclang-9/float16.rs

+21-56
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindgen-tests/tests/headers/float16.h

+28-14
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,36 @@
11
// bindgen-flags: --with-derive-hash --with-derive-partialeq --with-derive-eq
22

3-
static _Float16 global;
3+
static __fp16 global;
44

5-
struct A
5+
struct Test__Float16
66
{
7-
_Float16 f;
7+
__fp16 f;
88
};
99

10-
#define COMPLEX_TEST(ty_, name_) \
11-
struct Test##name_ \
12-
{ \
13-
ty_ _Complex mMember; \
14-
}; \
15-
struct Test##name_##Ptr \
16-
{ \
17-
ty_ _Complex *mMember; \
18-
};
10+
struct Test__Float16Ref
11+
{
12+
__fp16 *f;
13+
};
14+
15+
/*
16+
// This options are currently supported only on specific targets (eg. x86 with sse2)
17+
_Float16 returns_f16();
18+
19+
void gets_f16(_Float16 arg);
20+
21+
struct Test__Float16_Complex
22+
{
23+
_Float16 _Complex mMember;
24+
};
25+
26+
struct Test__Float16_ComplexPtr
27+
{
28+
_Float16 _Complex *mMember;
29+
};
30+
31+
_Float16 _Complex globalValueHalf;
1932
20-
COMPLEX_TEST(float, _Float16)
33+
_Float16 _Complex returns_f16_complex();
2134
22-
_Float16 _Complex globalValueHalf;
35+
void gets_f16_complex(_Float16 _Complex arg);
36+
*/

0 commit comments

Comments
 (0)