8sa1-gcc/gcc/testsuite/g++.old-deja/g++.mike/warn2.C
Jason Merrill 8190f0737f update
From-SVN: r23757
1998-11-22 16:27:47 -05:00

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();
}
}