mirror of
https://github.com/bitwiseworks/gcc-os2.git
synced 2026-07-09 02:06:52 +00:00
Source URL: git://gcc.gnu.org/git/gcc.git Source Commit: 3e7b85061947bdc7c7465743ba90734566860821
15 lines
221 B
D
15 lines
221 B
D
// { dg-shouldfail "Invalid memory operation" }
|
|
// { dg-output "core.exception.InvalidMemoryOperationError@.*: Invalid memory operation" }
|
|
struct S
|
|
{
|
|
~this()
|
|
{
|
|
new int;
|
|
}
|
|
}
|
|
|
|
void main()
|
|
{
|
|
new S;
|
|
}
|