URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.mike/] [warn2.C] - Rev 414
Go to most recent revision | 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();
}
}
Go to most recent revision | Compare with Previous | Blame | View Log