aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr/cond10.C
blob: b22dc158a879afd13e43f9cea20103f5eabf3771 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PR c++/32019

struct C
{
  C(const char *);
  operator const char *();
};

extern C c;
extern const char * s;

void
foo (bool b)
{
  b ? c : s;			// { dg-error "?:" }
  // { dg-message "convert" "" { target *-*-* } .-1 }
}