URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [overload19.C] - Rev 823
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run }
// PRMS Id: 4689
// Bug: g++ doesn't notice operators overloaded on enumeral types.
enum E { A=5, B=32, C=100 };
E operator|(E a, E b) { return C; }
int main()
{
return (A|B) != C;
}
Go to most recent revision | Compare with Previous | Blame | View Log