mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
20 lines
242 B
D
20 lines
242 B
D
// REQUIRED_ARGS: -cov=100
|
|
module no_assertz_cov;
|
|
|
|
void v()
|
|
{
|
|
assert(0);
|
|
}
|
|
|
|
void main()
|
|
{
|
|
int a = 42;
|
|
if (!a)
|
|
assert(0);
|
|
switch (a)
|
|
{
|
|
case 42: break;
|
|
case 99: {{assert(0);}}
|
|
default: assert(0);
|
|
}
|
|
}
|