pfultz2/cppcheck

Lifetime issue with function indirection

pfultz2 opened this issue · 0 comments

int& f(int& a) {
    return a;
}
int& hello() {
    int x = 0;
    return f(x);
}