例如:
void main(){
foo1();
}
fooTarget();
foo1(foo2(););
foo2(foo3(););
foo3(foo4(););
foo4(foo5(););
foo5(
foo6();
fooTarget(); //Identifier not found
);
foo6(
fooTarget(); //It Works!
);
它是什么?如果我将代码从 fooTarget() 粘贴到 foo5() 它也可以
来自实际代码的简化测试用例:
#include <cstring>
int main() {
char word[] = "hey";
int wordSize = getWordLenght(word); // error: getWordLenght not declared
}
int getWordLenght(char *word){
return strlen(word);
}