[Issue 23716] compilable/testcstuff2.c:18:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘asm’
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Wed Feb 15 17:24:25 UTC 2023
    
    
  
https://issues.dlang.org/show_bug.cgi?id=23716
--- Comment #1 from Iain Buclaw <ibuclaw at gdcproject.org> ---
Also:
void test21934()
{
    typedef int asmreg;
    register asmreg r1 asm("r1");
    // asm ignored by C compiler, should be disallowed?
    asmreg r2 asm("r2");
    register asmreg r3 asm("r3") = 3;
    // asm ignored by C compiler, should be disallowed?
    asmreg r4 asm("r4") = 4;
}
--
    
    
More information about the Digitalmars-d-bugs
mailing list