8190f0737f
From-SVN: r23757
27 lines
288 B
C
27 lines
288 B
C
// Build don't link:
|
|
// Special g++ Options: -Wall
|
|
|
|
enum Boolean {
|
|
Ok = 0,
|
|
NotOk = 1,
|
|
};
|
|
|
|
enum OpResult {
|
|
Succeeded = 0,
|
|
TempFail = 1,
|
|
PermFail = 2,
|
|
};
|
|
|
|
OpResult fn1() {
|
|
return TempFail;
|
|
}
|
|
|
|
extern void foo();
|
|
|
|
int
|
|
main () {
|
|
if (fn1() == Ok) { // WARNING -
|
|
foo();
|
|
}
|
|
}
|