mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
Update compiler/test/runnable/noreturn2.d
Co-authored-by: Cameron Ross <elpenguino@gmail.com>
This commit is contained in:
parent
f99288f35c
commit
025b072a3e
1 changed files with 2 additions and 0 deletions
|
@ -218,8 +218,10 @@ void testCast()
|
|||
try
|
||||
auto a = cast(int)foo;
|
||||
catch (Throwable e)
|
||||
{
|
||||
assert(e.msg == "Accessed expression of type `noreturn`");
|
||||
return;
|
||||
}
|
||||
|
||||
assert(0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue