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

16 lines
231 B
D

// REQUIRED_ARGS: -de
/*
TEST_OUTPUT:
---
fail_compilation/deprecate12979c.d(12): Error: `asm` statement is assumed to use the GC - mark it with `@nogc` if it does not
---
*/
void foo() @nogc
{
asm
{
ret;
}
}