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 ```
90 lines
1.1 KiB
C
90 lines
1.1 KiB
C
#include <stdarg.h>
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include <stdlib.h>
|
|
|
|
enum C {
|
|
X = 2,
|
|
Y,
|
|
};
|
|
typedef uint32_t C;
|
|
|
|
typedef struct A {
|
|
int32_t _0;
|
|
} A;
|
|
|
|
typedef struct B {
|
|
int32_t x;
|
|
float y;
|
|
} B;
|
|
|
|
typedef struct D {
|
|
uint8_t List;
|
|
uintptr_t Of;
|
|
struct B Things;
|
|
} D;
|
|
|
|
enum F_Tag {
|
|
Foo,
|
|
Bar,
|
|
Baz,
|
|
};
|
|
typedef uint8_t F_Tag;
|
|
|
|
typedef struct Bar_Body {
|
|
F_Tag tag;
|
|
uint8_t x;
|
|
int16_t y;
|
|
} Bar_Body;
|
|
|
|
typedef union F {
|
|
F_Tag tag;
|
|
struct {
|
|
F_Tag foo_tag;
|
|
int16_t foo;
|
|
};
|
|
Bar_Body bar;
|
|
} F;
|
|
|
|
enum H_Tag {
|
|
Hello,
|
|
There,
|
|
Everyone,
|
|
};
|
|
typedef uint8_t H_Tag;
|
|
|
|
typedef struct There_Body {
|
|
uint8_t x;
|
|
int16_t y;
|
|
} There_Body;
|
|
|
|
typedef struct H {
|
|
H_Tag tag;
|
|
union {
|
|
struct {
|
|
int16_t hello;
|
|
};
|
|
There_Body there;
|
|
};
|
|
} H;
|
|
|
|
enum I_Tag {
|
|
ThereAgain,
|
|
SomethingElse,
|
|
};
|
|
typedef uint8_t I_Tag;
|
|
|
|
typedef struct ThereAgain_Body {
|
|
uint8_t x;
|
|
int16_t y;
|
|
} ThereAgain_Body;
|
|
|
|
typedef struct I {
|
|
I_Tag tag;
|
|
union {
|
|
ThereAgain_Body there_again;
|
|
};
|
|
} I;
|
|
|
|
void root(struct A a, struct B b, C c, struct D d, union F f, struct H h, struct I i);
|