dmd/compiler/test/compilable/test20502.c
drpriver 5fd0d29211
Fix #20502 - importc: macro conflicts with struct of same name (#21234)
Fixes https://github.com/dlang/dmd/issues/20502

Similar to VarDeclarations, don't let TemplateDeclarations from
C defines shadow a real symbol.
2025-04-16 07:27:33 +08:00

10 lines
118 B
C

// https://github.com/dlang/dmd/issues/20502
struct mg_str {
};
void mg_str_s() {
}
#define mg_str(s) mg_str_s(s)