aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr/cond8.C
blob: 11b090dfc5475c32f623153e48ab279369c7ad78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/22434

struct A
{
  A(void*);
  ~A();
};

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