Limit dg-xfail-run-if for *-*-hpux11.[012]* to -O0
[official-gcc.git] / libphobos / testsuite / libphobos.betterc / test19416.d
blobaff93d3aa5f7caa92e715edc05c42c114159d51d
1 /*******************************************/
2 // https://issues.dlang.org/show_bug.cgi?id=19416
4 import core.stdc.stdlib : malloc, free;
5 import core.exception : onOutOfMemoryError;
7 extern(C) void main()
9 auto m = malloc(1);
10 if (!m)
11 onOutOfMemoryError();
12 else
13 free(m);