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
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
enum3.C
blob
9e25570ab42dfb38bed5d82b2809c2fbaa55b083
1
// Build don't link:
2
// Special g++ Options: -Wall
3
4
enum tristate { no = -1, maybe, yes };
5
6
tristate
7
tristate_satisfies (register tristate const t1, register tristate const t2)
8
{
9
switch (t1)
10
{
11
case no:
12
return (tristate) -t2;
13
case maybe:
14
return yes;
15
case yes:
16
return t2;
17
}
18
return maybe;
19
}