ldc/tests/semantic/asm_datadefinition_diag.d
2018-03-30 15:19:50 +02:00

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;
}
}