
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.
11 строки
110 Б
C
11 строки
110 Б
C
#pragma once
|
|
|
|
typedef struct {
|
|
int a;
|
|
int b;
|
|
} teststruct;
|
|
|
|
typedef enum {
|
|
v0,
|
|
v1
|
|
} testenum;
|