summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/cond5.C
blob: 7ed9fbe892ec1dc43dde3ec82f9792e4b1119d80 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/40566

void
f (int x, int y)
{
  int c = x ? 23 : throw "bla";
  short d = y ? throw "bla" : 23;
  char e = x ? 23 : throw "bla";
  long f = x ? 23 : throw "bla";
}