继续按 align-linuxcnc 约束:补 O-word 执行错误源码覆盖
结论:新增重复/未匹配 O-word label 和 out-of-context return/endsub 的 source-link 断言;依据 LinuxCNC interp_o_word.cc,未扩展 smoke。
This commit is contained in:
@@ -0,0 +1 @@
|
||||
O100 break
|
||||
4
tests/gcode/linuxcnc_oword_duplicate_if_label_error.ngc
Normal file
4
tests/gcode/linuxcnc_oword_duplicate_if_label_error.ngc
Normal file
@@ -0,0 +1,4 @@
|
||||
O100 if [1]
|
||||
O100 endif
|
||||
O100 if [1]
|
||||
O100 endif
|
||||
@@ -0,0 +1 @@
|
||||
O100 elseif [1]
|
||||
@@ -0,0 +1,2 @@
|
||||
O100 if [1]
|
||||
O100 endrepeat
|
||||
1
tests/gcode/linuxcnc_oword_endsub_without_sub_error.ngc
Normal file
1
tests/gcode/linuxcnc_oword_endsub_without_sub_error.ngc
Normal file
@@ -0,0 +1 @@
|
||||
O100 endsub
|
||||
1
tests/gcode/linuxcnc_oword_return_without_sub_error.ngc
Normal file
1
tests/gcode/linuxcnc_oword_return_without_sub_error.ngc
Normal file
@@ -0,0 +1 @@
|
||||
O100 return
|
||||
Reference in New Issue
Block a user