cbindgen/tests/expectations/decl_name_conflicting.c
Emilio Cobos Álvarez 750745831a ir: Deal with name conflicts correctly in declaration type resolution.
So, basically, make opaque items last, and make previous names override
them.

Fixes #649
2021-01-26 12:55:05 +01:00

17 lines
265 B
C

#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
enum BindingType {
Buffer = 0,
NotBuffer = 1,
};
typedef uint32_t BindingType;
typedef struct {
BindingType ty;
} BindGroupLayoutEntry;
void root(BindGroupLayoutEntry entry);