...
Code Block | ||||
---|---|---|---|---|
| ||||
/* in another source file */ long f(long x) { return x < 0 ? -x : x; } /* f prototype in scope in this source file */ long f(long x); int g(long x) { return f(x); // diagnostic required* returns -x if x<0 or else returns x */ } |
Noncompliant Code Example (POSIX)
...