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
Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
warn2.C
blob
d505b29ae2ab1514040f61a6f158c4ce12d4a1c9
1
// { dg-do assemble }
2
// { dg-options "-Wall" }
3
4
enum Boolean {
5
Ok = 0,
6
NotOk = 1,
7
};
8
9
enum OpResult {
10
Succeeded = 0,
11
TempFail = 1,
12
PermFail = 2,
13
};
14
15
OpResult fn1() {
16
return TempFail;
17
}
18
19
extern void foo();
20
21
int
22
main () {
23
if (fn1() == Ok) { // { dg-warning "" }
24
foo();
25
}
26
}