[Issue 21934] importC: Support asm labels to specify the assembler name to use for a C symbol

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 20 13:11:45 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=21934

--- Comment #1 from Iain Buclaw <ibuclaw at gdcproject.org> ---
None of these work:
---
int sym1 asm("realsym1") = 1;
int sym2 __asm("realsym2") = 2;
int sym3 __asm__("realsym3") = 3;

int fun1() asm("realfun1");
int fun1() { return 1; }

int fun2() __asm("realfun2");
int fun2() { return 2; }

int fun3() __asm__("realfun3");
int fun3() { return 3; }

--


More information about the Digitalmars-d-bugs mailing list