repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/85462
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
expr
/
cond10.C
blob
b22dc158a879afd13e43f9cea20103f5eabf3771
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
}