repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix warnings occured during profiledboostrap on
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
overload19.C
blob
73404fe9da64d6d6689d40ee12cf6c25c899d46a
1
// { dg-do run }
2
// PRMS Id: 4689
3
// Bug: g++ doesn't notice operators overloaded on enumeral types.
4
5
enum E { A=5, B=32, C=100 };
6
7
E operator|(E a, E b) { return C; }
8
9
int main()
10
{
11
return (A|B) != C;
12
}