File tree Expand file tree Collapse file tree 3 files changed +17
-10
lines changed Expand file tree Collapse file tree 3 files changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ static bool ctest_const_ON_val_static = ON;
11
11
12
12
// Define a function that returns a pointer to the value of the constant to test.
13
13
// This will later be called on the Rust side via FFI.
14
- bool * ctest_const__ON (void ) {
14
+ bool * ctest_const__ON (void )
15
+ {
15
16
return & ctest_const_ON_val_static ;
16
17
}
17
18
@@ -23,7 +24,8 @@ uint64_t ctest_align_of__in6_addr(void) { return _Alignof(in6_addr); }
23
24
24
25
// Return `1` if the type is signed, otherwise return `0`.
25
26
// Casting -1 to the aliased type if signed evaluates to `-1 < 0`, if unsigned to `MAX_VALUE < 0`
26
- uint32_t ctest_signededness_of__in6_addr (void ) {
27
- in6_addr all_ones = (in6_addr ) - 1 ;
27
+ uint32_t ctest_signededness_of__in6_addr (void )
28
+ {
29
+ in6_addr all_ones = (in6_addr )- 1 ;
28
30
return all_ones < 0 ;
29
31
}
Original file line number Diff line number Diff line change @@ -11,15 +11,17 @@ static char *ctest_const_A_val_static = A;
11
11
12
12
// Define a function that returns a pointer to the value of the constant to test.
13
13
// This will later be called on the Rust side via FFI.
14
- char * ctest_const_cstr__A (void ) {
14
+ char * ctest_const_cstr__A (void )
15
+ {
15
16
return ctest_const_A_val_static ;
16
17
}
17
18
18
19
static char * ctest_const_B_val_static = C_B ;
19
20
20
21
// Define a function that returns a pointer to the value of the constant to test.
21
22
// This will later be called on the Rust side via FFI.
22
- char * ctest_const_cstr__B (void ) {
23
+ char * ctest_const_cstr__B (void )
24
+ {
23
25
return ctest_const_B_val_static ;
24
26
}
25
27
@@ -43,7 +45,8 @@ uint64_t ctest_align_of__Word(void) { return _Alignof(union Word); }
43
45
44
46
// Return `1` if the type is signed, otherwise return `0`.
45
47
// Casting -1 to the aliased type if signed evaluates to `-1 < 0`, if unsigned to `MAX_VALUE < 0`
46
- uint32_t ctest_signededness_of__Byte (void ) {
47
- Byte all_ones = (Byte ) - 1 ;
48
+ uint32_t ctest_signededness_of__Byte (void )
49
+ {
50
+ Byte all_ones = (Byte )- 1 ;
48
51
return all_ones < 0 ;
49
52
}
Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ static char *ctest_const_A_val_static = A;
11
11
12
12
// Define a function that returns a pointer to the value of the constant to test.
13
13
// This will later be called on the Rust side via FFI.
14
- char * ctest_const_cstr__A (void ) {
14
+ char * ctest_const_cstr__A (void )
15
+ {
15
16
return ctest_const_A_val_static ;
16
17
}
17
18
@@ -35,7 +36,8 @@ uint64_t ctest_align_of__Word(void) { return _Alignof(union Word); }
35
36
36
37
// Return `1` if the type is signed, otherwise return `0`.
37
38
// Casting -1 to the aliased type if signed evaluates to `-1 < 0`, if unsigned to `MAX_VALUE < 0`
38
- uint32_t ctest_signededness_of__Byte (void ) {
39
- Byte all_ones = (Byte ) - 1 ;
39
+ uint32_t ctest_signededness_of__Byte (void )
40
+ {
41
+ Byte all_ones = (Byte )- 1 ;
40
42
return all_ones < 0 ;
41
43
}
You can’t perform that action at this time.
0 commit comments