mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
15 lines
226 B
D
15 lines
226 B
D
|
|
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/deprecate12979d.d(11): Error: executing an `asm` statement without `@trusted` annotation is not allowed in a `@safe` function
|
|
---
|
|
*/
|
|
|
|
void foo() @safe
|
|
{
|
|
asm
|
|
{
|
|
ret;
|
|
}
|
|
}
|