mirror of
https://github.com/dlang/dmd.git
synced 2025-04-28 06:00:13 +03:00
15 lines
335 B
D
15 lines
335 B
D
/*
|
|
* TEST_OUTPUT:
|
|
---
|
|
fail_compilation/test16195.d(14): Error: the `delete` keyword is obsolete
|
|
fail_compilation/test16195.d(14): use `object.destroy()` (and `core.memory.GC.free()` if applicable) instead
|
|
---
|
|
*/
|
|
|
|
|
|
// https://issues.dlang.org/show_bug.cgi?id=16195
|
|
|
|
@safe pure nothrow @nogc void test(int* p)
|
|
{
|
|
delete p;
|
|
}
|