mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
28 lines
370 B
D
28 lines
370 B
D
nothrow:
|
|
|
|
version (Windows)
|
|
{
|
|
version (LP_64)
|
|
import core.stdc.stdlib;
|
|
else
|
|
// doesn't currently work b/c SEH remains present even in nothrow code
|
|
void* alloca(size_t) { return null; }
|
|
}
|
|
else
|
|
import core.stdc.stdlib;
|
|
|
|
struct S
|
|
{
|
|
~this() nothrow {}
|
|
}
|
|
|
|
S foo(void* p = alloca(1234))
|
|
{
|
|
return S();
|
|
}
|
|
|
|
int main()
|
|
{
|
|
foo();
|
|
return 0;
|
|
}
|