继续按 align-linuxcnc 约束:补 O-word 匹配错误源码覆盖
结论:新增 undefined/no-matching O-word label 与子程序闭合方式错误的 source-link 断言;依据 LinuxCNC interp_o_word.cc,未扩展 smoke。
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
O100 if [1]
|
||||
O100 break
|
||||
@@ -0,0 +1,2 @@
|
||||
O100 if [1]
|
||||
O100 continue
|
||||
@@ -0,0 +1 @@
|
||||
O100 continue
|
||||
@@ -0,0 +1 @@
|
||||
O100 else
|
||||
@@ -0,0 +1,2 @@
|
||||
O100 while [0]
|
||||
O100 elseif [1]
|
||||
@@ -0,0 +1,2 @@
|
||||
O100 while [1]
|
||||
O100 endif
|
||||
@@ -0,0 +1 @@
|
||||
O100 endif
|
||||
@@ -0,0 +1,2 @@
|
||||
O100 if [1]
|
||||
O100 endwhile
|
||||
@@ -0,0 +1 @@
|
||||
O100 endwhile
|
||||
4
tests/gcode/linuxcnc_oword_fanuc_requires_m99_error.ngc
Normal file
4
tests/gcode/linuxcnc_oword_fanuc_requires_m99_error.ngc
Normal file
@@ -0,0 +1,4 @@
|
||||
M98 P100
|
||||
O100
|
||||
O100 endsub
|
||||
M2
|
||||
3
tests/gcode/linuxcnc_oword_sub_requires_endsub_error.ngc
Normal file
3
tests/gcode/linuxcnc_oword_sub_requires_endsub_error.ngc
Normal file
@@ -0,0 +1,3 @@
|
||||
O100 call
|
||||
O100 sub
|
||||
M99
|
||||
Reference in New Issue
Block a user