Skip to content

Commit 5da7d4f

Browse files
committed
Add extra test for switch case range with no default and empty case
1 parent 7685476 commit 5da7d4f

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
int main()
2+
{
3+
int x;
4+
switch(x)
5+
{
6+
case 10 ... 0:
7+
break;
8+
}
9+
return 0;
10+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
main.c
3+
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
--
7+
^warning: ignoring
8+
^Invariant check failed

0 commit comments

Comments
 (0)