blob: b22dc158a879afd13e43f9cea20103f5eabf3771 [file] [log] [blame]
// 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 }
}