aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr/cond10.C
blob: 892576fa8b82964e8987a11e33cf12840b5729ee (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 *-*-* } 15 }
}