Files
cbindgen/tests/expectations/reserved_both.compat.c
Jonathan Schwender 51a981cefc Rename expectations files
Rename expectation files to contain only one dot.
This is needed for the Cython tests as of Cython 3.
The following script was used in a clean repository
to rename the files:

```sh
 ls | sed -E -n 's/(.*)\.(both|tag)?((\..*)?\.(c|cpp|pyx))/mv "\1.\2\3" "\1_\2\3"/p' | sh
```
2023-09-04 19:37:45 +02:00

102 lines
1.3 KiB
C

#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
typedef struct A {
int32_t namespace_;
float float_;
} A;
typedef struct B {
int32_t namespace_;
float float_;
} B;
enum C_Tag
#ifdef __cplusplus
: uint8_t
#endif // __cplusplus
{
D,
};
#ifndef __cplusplus
typedef uint8_t C_Tag;
#endif // __cplusplus
typedef struct D_Body {
int32_t namespace_;
float float_;
} D_Body;
typedef struct C {
C_Tag tag;
union {
D_Body d;
};
} C;
enum E_Tag
#ifdef __cplusplus
: uint8_t
#endif // __cplusplus
{
Double,
Float,
};
#ifndef __cplusplus
typedef uint8_t E_Tag;
#endif // __cplusplus
typedef struct E {
E_Tag tag;
union {
struct {
double double_;
};
struct {
float float_;
};
};
} E;
enum F_Tag
#ifdef __cplusplus
: uint8_t
#endif // __cplusplus
{
double_,
float_,
};
#ifndef __cplusplus
typedef uint8_t F_Tag;
#endif // __cplusplus
typedef struct F {
F_Tag tag;
union {
struct {
double double_;
};
struct {
float float_;
};
};
} F;
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
void root(struct A a,
struct B b,
struct C c,
struct E e,
struct F f,
int32_t namespace_,
float float_);
#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus