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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user