Debian Codegraph @

gcc/testsuite/g++.dg/expr/cond10.C

raw
1 // PR c++/32019
2
3 struct C
4 {
5 C(const char *);
6 operator const char *();
7 };
8
9 extern C c;
10 extern const char * s;
11
12 void
13 foo (bool b)
14 {
15 b ? c : s; // { dg-error "?:" }
16 // { dg-message "convert" "" { target *-*-* } .-1 }
17 }