summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr/cond8.C
blob: 11708ec0f6f27ac4b6a653c581ee0c2d79186f6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/22434
// { dg-options "" }

struct A
{
  A(void*);			// { dg-error "initializing" }
  ~A();
};

void foo(const int i, bool b)
{
  b ? A(0) : i; // { dg-error "conversion" }
}