Limit dg-xfail-run-if for *-*-hpux11.[012]* to -O0
[official-gcc.git] / libphobos / testsuite / libphobos.allocations / alloc_from_assert.d
bloba377cd9139de0803936e838cef35ddc5b8ddc7a4
1 import core.exception;
2 import core.memory;
4 class FailFinalization
6 int magic;
8 ~this () @nogc nothrow
10 try
11 assert(this.magic == 42);
12 catch (AssertError) {}
16 void foo ()
18 auto dangling = new FailFinalization();
21 void main()
23 foo();
24 GC.collect();