mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
23 lines
353 B
D
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];
|
|
}
|
|
}
|