Apparently this is valid

I just noticed I had this somewhere without realizing.
1
2
3
4
5
void foo();

void bar(){
    return foo();
}

I guess I can see there are cases where it could be convenient, it just never occurred to me to try it and thought it was funny-looking.
Definitely just *looks* like an unintentional bug from a programmer, and I'd question it in a code review, but that is funny.
Topic archived. No new replies allowed.