1 // https://issues.dlang.org/show_bug.cgi?id=12979
3 // { dg-options "-Wall -Wdeprecated -Werror" }
8 asm pure nothrow @nogc @trusted {}
12 void test2() pure nothrow @nogc @safe
14 asm pure nothrow @nogc @trusted {}
19 asm pure nothrow @nogc @trusted {}
22 static assert(__traits(compiles
, () pure nothrow @nogc @safe => test3()));
29 // wait for deprecation of asm pure inference
30 // static assert(!__traits(compiles, () pure => test4()));
31 static assert(!__traits(compiles
, () nothrow => test4()));
32 // wait for deprecation of asm @nogc inference
33 // static assert(!__traits(compiles, () @nogc => test4()));
34 static assert(!__traits(compiles
, () @safe => test4()));
39 static assert(!__traits(compiles
, { asm { ""; } }() ));