Goto statements with a bad label produces error message.
Now it also produces a short list of suggestions based on string distance.
This commit is contained in:
6
tests_errors/goto-5.ispc
Normal file
6
tests_errors/goto-5.ispc
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
void func(int x) {
|
||||
completelydifferentlabel:
|
||||
goto label;
|
||||
}
|
||||
|
||||
9
tests_errors/goto-6.ispc
Normal file
9
tests_errors/goto-6.ispc
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
void func(int x) {
|
||||
libel:
|
||||
babel:
|
||||
lbel:
|
||||
label2:
|
||||
goto label;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user