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
* ru.po: Update.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wenum-compare-no.C
blob
7dc27d3fe72d69147ccd29bb06d6c23293a84c7f
1
/* Test disabling -Wenum-compare (on by default). See PR27975. */
2
/* { dg-do compile } */
3
/* { dg-options "-Wno-enum-compare" } */
4
enum E1 { a };
5
enum E2 { b };
6
7
int foo (E1 e1, E2 e2)
8
{
9
return e1 == e2; /* { dg-bogus "comparison between" } */
10
}