aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/enum4.C
blob: ab8b69f4aa7350bb4d6aeab9cc39e95ebe2aba8f (plain)
1
2
3
4
5
6
7
8
9
10
// Build don't link:
// Special g++ Options: -Wall

enum tristate { no = -1, maybe, yes };

tristate
definite_tristate (int truth)
{
  return (truth) ? yes : no;
}