mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-07-26 14:48:40 +00:00
aaa860f154
Anonymous enums (often used in typedefs) triggered a problem that was already solved for structs but wasn't yet solved for enums. So this patch generalizes the code to work for both structs and enums, and adds testing for both.
12 lines
110 B
C
12 lines
110 B
C
#pragma once
|
|
|
|
typedef struct {
|
|
int a;
|
|
int b;
|
|
} teststruct;
|
|
|
|
typedef enum {
|
|
v0,
|
|
v1
|
|
} testenum;
|