dmd/compiler/test/fail_compilation/fail3753.d
2022-07-09 18:53:07 +02:00

31 lines
439 B
D

/*
DISABLED: dragonflybsd freebsd linux osx win32 openbsd
TEST_OUTPUT:
---
Error: cannot mix `core.std.stdlib.alloca()` and exception handling in `_Dmain()`
---
*/
import core.stdc.stdlib : alloca;
import core.stdc.stdio;
struct TheStruct
{
~this()
{
printf("dtor()\n");
}
}
void bar()
{
printf("bar()\n");
}
void main()
{
auto s = TheStruct();
bar();
auto a = alloca(16);
printf("test()\n");
}