File tree Expand file tree Collapse file tree 15 files changed +161
-59
lines changed
regression/ansi-c/goto_convert
switch_range_operands_count Expand file tree Collapse file tree 15 files changed +161
-59
lines changed Original file line number Diff line number Diff line change
1
+ int main ()
2
+ {
3
+ break ;
4
+ return 0 ;
5
+ }
Original file line number Diff line number Diff line change
1
+ CORE
2
+ main.c
3
+
4
+ ^EXIT=6$
5
+ ^SIGNAL=0$
6
+ --
7
+ ^warning: ignoring
8
+ ^CONVERSION ERROR$
Original file line number Diff line number Diff line change
1
+ int main ()
2
+ {
3
+ continue ;
4
+ return 0 ;
5
+ }
Original file line number Diff line number Diff line change
1
+ CORE
2
+ main.c
3
+
4
+ ^EXIT=6$
5
+ ^SIGNAL=0$
6
+ --
7
+ ^warning: ignoring
8
+ ^CONVERSION ERROR$
Original file line number Diff line number Diff line change
1
+ int main ()
2
+ {
3
+ goto x ;
4
+
5
+ // x:
6
+
7
+ return 0 ;
8
+ }
Original file line number Diff line number Diff line change
1
+ CORE gcc-only
2
+ main.c
3
+
4
+ ^EXIT=6$
5
+ ^SIGNAL=0$
6
+ --
7
+ ^warning: ignoring
8
+ ^CONVERSION ERROR$
Original file line number Diff line number Diff line change
1
+ int main ()
2
+ {
3
+ int x ;
4
+ int n = 5 ;
5
+ switch (x )
6
+ {
7
+ case 0 ... n :
8
+ break ;
9
+ default :
10
+ break ;
11
+ }
12
+ return 0 ;
13
+ }
Original file line number Diff line number Diff line change
1
+ CORE
2
+ main.c
3
+
4
+ ^EXIT=6$
5
+ ^SIGNAL=0$
6
+ --
7
+ ^warning: ignoring
8
+ ^CONVERSION ERROR$
Original file line number Diff line number Diff line change
1
+ int main ()
2
+ {
3
+ int x ;
4
+ switch (x )
5
+ {
6
+ case 10 ... 0 :
7
+ break ;
8
+ default :
9
+ break ;
10
+ }
11
+ return 0 ;
12
+ }
Original file line number Diff line number Diff line change
1
+ CORE
2
+ main.c
3
+
4
+ ^EXIT=134$
5
+ ^SIGNAL=0$
6
+ --
7
+ ^warning: ignoring
8
+ ^Invariant check failed
You can’t perform that action at this time.
0 commit comments