Files
codeql/cpp/ql/src/jsf/4.13 Functions/AV Rule 107.cpp
2018-08-02 17:53:23 +01:00

11 lines
230 B
C++

int f() {
extern int other(); //scope of externs is the entire file, not just the
//block where it is declared
...
other()
}
int g() {
other(); //this will use the other() function declared inside f()
}