Files
gcc-reflection/libphobos/testsuite/libphobos.exceptions/invalid_memory_operation.d
Iain Buclaw 3dfad340cb libphobos: Merge upstream druntime c11e1d1708, phobos 303b9c9f7
Synchronizing the library with the upstream release of v2.108.1.

D runtime changes:

        - Import druntime v2.108.1.
	- Removed all `collectNoStack' functions and API from the
	  garbage collector.
	- The static method `core.thread.Thread.sleep' is now marked as
	  `@trusted'.

Phobos changes:

        - Import phobos v2.108.1.
	- Add `std.process.Config.preExecDelegate'.

libphobos/ChangeLog:

	* libdruntime/MERGE: Merge upstream druntime c11e1d1708.
	* libdruntime/Makefile.am (DRUNTIME_DSOURCES_FREEBSD): Add
	core/sys/freebsd/mqueue.d.
	(DRUNTIME_DSOURCES_LINUX): Add core/sys/linux/sys/mount.d.
	* libdruntime/Makefile.in: Regenerate.
	* src/MERGE: Merge upstream phobos 303b9c9f7.
	* testsuite/libphobos.exceptions/invalid_memory_operation.d: Adjust
	test.
2025-01-05 13:56:23 +01:00

16 lines
250 B
D

// { dg-shouldfail "Invalid memory operation" }
// { dg-output "core.exception.InvalidMemoryOperationError@.*: Invalid memory operation" }
struct S
{
~this()
{
new int;
}
}
void main()
{
foreach(i; 0 .. 100)
new S;
}