dmd/compiler/test/fail_compilation/failasm.d
2022-07-09 18:53:07 +02:00

23 lines
353 B
D

/*
REQUIRED_ARGS: -m32
TEST_OUTPUT:
---
fail_compilation/failasm.d(111): Error: use -m64 to compile 64 bit instructions
---
*/
#line 100
// https://issues.dlang.org/show_bug.cgi?id=21181
uint func()
{
asm
{
naked;
inc byte ptr [EAX];
inc short ptr [EAX];
inc int ptr [EAX];
inc long ptr [EAX];
}
}