void fn() asm("test1");
void fn(){}
extern int xs[] asm("test2");
int xs[1];
compile and list the names with something like: dmd -c test.c && nm test.o
they use the asm names with gcc but not with dmd
Comment #1 by bugzilla — 2022-04-18T08:05:33Z
evidently the patch for 23011 doesn't work for this one.
Comment #2 by dlang-bot — 2022-05-09T02:19:12Z
@maxhaton created dlang/dmd pull request #14095 "Fix Issue 23012 - Merge asm() symbol names of forward declared symbol…" fixing this issue:
- Fix Issue 23012 - Merge asm() symbol names of forward declared symbols and their definitions
https://github.com/dlang/dmd/pull/14095
Comment #3 by dlang-bot — 2022-05-19T10:40:47Z
dlang/dmd pull request #14095 "Fix Issue 23012 - Merge asm() symbol names of forward declared symbol…" was merged into master:
- a65ffe6c25a1c860608537fc56418bca180a52a2 by mhh:
Fix Issue 23012 - Merge asm() symbol names of forward declared symbols and their definitions
https://github.com/dlang/dmd/pull/14095