mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-10 21:06:33 +03:00
17 lines
454 B
D
17 lines
454 B
D
// Tests diagnostics of using data definition directives in inline asm.
|
|
// Note: this test should be removed once we _do_ support them.
|
|
|
|
// REQUIRES: target_X86
|
|
|
|
// RUN: not %ldc -mtriple=x86_64-linux-gnu -c %s 2>&1 | FileCheck %s
|
|
|
|
void foo()
|
|
{
|
|
asm @nogc nothrow
|
|
{
|
|
mov EAX, EDX;
|
|
// CHECK: ([[@LINE+1]]): Error: Data definition directives inside inline asm are not supported yet.
|
|
ds 0xC70F, 0x17;
|
|
mov EAX, EDX;
|
|
}
|
|
}
|