dmd/compiler/test/compilable/test23965.d
Teodor Dutu b358cebfa6
Fix Issue 23965 - Disable deprecation checks for DRuntime hooks (#15315)
Lowerings to runtime hooks can be made from deprecated contexts, which
results in incorrect deprecation messages of the deprecated context
calling an undeprecated hook. Since hooks aren't going to be deprecated,
this check may be disabled.

Signed-off-by: Teodor Dutu <teodor.dutu@gmail.com>
2023-06-19 12:57:19 +03:00

11 lines
142 B
D

// https://issues.dlang.org/show_bug.cgi?id=23965
// REQUIRED_ARGS: -de
deprecated:
struct S {}
void fun()
{
S[] arr;
arr ~= S();
}