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 ```
44 lines
640 B
C
44 lines
640 B
C
#include <stdarg.h>
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include <stdlib.h>
|
|
|
|
typedef struct Foo {
|
|
bool a;
|
|
int32_t b;
|
|
} Foo;
|
|
|
|
enum Bar_Tag {
|
|
Baz,
|
|
Bazz,
|
|
FooNamed,
|
|
FooParen,
|
|
};
|
|
typedef uint8_t Bar_Tag;
|
|
|
|
typedef struct Bazz_Body {
|
|
Bar_Tag tag;
|
|
struct Foo named;
|
|
} Bazz_Body;
|
|
|
|
typedef struct FooNamed_Body {
|
|
Bar_Tag tag;
|
|
int32_t different;
|
|
uint32_t fields;
|
|
} FooNamed_Body;
|
|
|
|
typedef struct FooParen_Body {
|
|
Bar_Tag tag;
|
|
int32_t _0;
|
|
struct Foo _1;
|
|
} FooParen_Body;
|
|
|
|
typedef union Bar {
|
|
Bar_Tag tag;
|
|
Bazz_Body bazz;
|
|
FooNamed_Body foo_named;
|
|
FooParen_Body foo_paren;
|
|
} Bar;
|
|
|
|
struct Foo root(union Bar aBar);
|