URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.mike/] [warn2.C] - Rev 12
Compare with Previous | Blame | View Log
// { dg-do assemble }
// { dg-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) { // { dg-warning "" }
foo();
}
}