int main() { struct a; a * p; union b; b * p1; enum c; c * p2; }
Standard input is empty
prog.c: In function ‘main’: prog.c:4: error: ‘a’ undeclared (first use in this function) prog.c:4: error: (Each undeclared identifier is reported only once prog.c:4: error: for each function it appears in.) prog.c:4: error: ‘p’ undeclared (first use in this function) prog.c:6: error: ‘b’ undeclared (first use in this function) prog.c:6: error: ‘p1’ undeclared (first use in this function) cc1: warnings being treated as errors prog.c:7: error: ISO C forbids forward references to ‘enum’ types prog.c:8: error: ‘c’ undeclared (first use in this function) prog.c:8: error: ‘p2’ undeclared (first use in this function)
Standard output is empty