2 // PERMUTE_ARGS: -debug
4 /******************************************/
5 // https://issues.dlang.org/show_bug.cgi?id=3882
10 fail_compilation/fail3882.d(23): Warning: calling `fail3882.strictlyPure!int.strictlyPure` without side effects discards return value of type `int`; prepend a `cast(void)` if intentional
11 fail_compilation/fail3882.d(27): Warning: calling `fp` without side effects discards return value of type `int`; prepend a `cast(void)` if intentional
15 @safe pure nothrow T
strictlyPure(T
)(T x
)
25 // https://issues.dlang.org/show_bug.cgi?id=12649
26 auto fp
= &strictlyPure
!int;
30 /******************************************/
31 // bugfix in TypeFunction::purityLevel
36 fail_compilation/fail3882.d(48): Warning: calling `fail3882.f1` without side effects discards return value of type `int`; prepend a `cast(void)` if intentional
37 fail_compilation/fail3882.d(49): Warning: calling `fail3882.f2` without side effects discards return value of type `int`; prepend a `cast(void)` if intentional
38 Error: warnings are treated as errors
39 Use -wi if you wish to treat warnings only as informational.
43 nothrow pure int f1(immutable(int)[] a
) { return 0; }
44 nothrow pure int f2(immutable(int)* p
) { return 0; }