summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/enum4.C
blob: b8b1209d32617c28b750d7e0b18433c5076f8983 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do assemble  }
// { dg-options "-Wall" }

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

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