xfail gnat.dg/trampoline3.adb scan-assembler-not check on hppa*-*-*
[official-gcc.git] / libphobos / testsuite / libphobos.exceptions / static_dtor.d
blob37a49b458ad9c1d972c43ff9e304ac717ba0b202
1 // { dg-shouldfail "static_dtor_exception" }
2 // { dg-output "object.Exception@.*: static_dtor_exception" }
3 // https://issues.dlang.org/show_bug.cgi?id=16594
4 import core.stdc.stdio;
6 shared static ~this()
8 __gshared int count;
10 if (count++) fprintf(stderr, "dtor_called_more_than_once");
11 else throw new Exception("static_dtor_exception");
14 void main()