repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wenum-compare.C
blob
af7c483a2384d02f0263a8846e3a26cb47a3d47e
1
/* Test that we get the -Wenum-compare by default. See PR27975. */
2
/* { dg-do compile } */
3
/* { dg-options "" } */
4
enum E1 { a };
5
enum E2 { b };
6
7
int foo (E1 e1, E2 e2)
8
{
9
return e1 == e2; /* { dg-warning "13:comparison between" } */
10
}