mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
20 lines
369 B
D
20 lines
369 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail13123.d(9): Error: `fail13123.test`: `in` contract may throw but function is marked as `nothrow`
|
|
fail_compilation/fail13123.d(9): Error: `fail13123.test`: `out` contract may throw but function is marked as `nothrow`
|
|
---
|
|
*/
|
|
|
|
void test() nothrow
|
|
in
|
|
{
|
|
throw new Exception(null);
|
|
}
|
|
out
|
|
{
|
|
throw new Exception(null);
|
|
}
|
|
do
|
|
{
|
|
}
|