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