test.d(3:36)[error]: Expected `;` instead of `"r"`
test.d(3:44)[warn]: Empty asm instruction
even though this is valid code in GDC/LDC (for the right target). Maybe there should be an option to disable formatting within asm blocks and it can just ignore them?
It still formats the code, so it's not really a problem, but it's annoying that it spits out an error and warning.
I guess I am supposed to add a comma after the first argument: "i"(reg), "r"(val). It's interesting that gdc still accepts it without the comma. Sorry for the bother.
Formatting this code causes an error and warning:
even though this is valid code in GDC/LDC (for the right target). Maybe there should be an option to disable formatting within asm blocks and it can just ignore them?
It still formats the code, so it's not really a problem, but it's annoying that it spits out an error and warning.