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
Rebase.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
p9068.C
blob
a33f60f58e4f17f4b86b6ae651b41c58cce04b4f
1
// { dg-do assemble }
2
// prms-id: 9068
3
4
struct ostream {
5
void operator<< (int); // { dg-message "operator|no known conversion" } fn ref in err msg
6
};
7
8
class C {
9
public:
10
static int& i ();
11
static int& i (int signatureDummy);
12
};
13
14
void foo (ostream& lhs, const C& rhs)
15
{
16
lhs << rhs.i; // { dg-error "match" } no such i for any opr << ()
17
}
18
19
int& C::i () {
20
static int _i = 4711;
21
return _i;
22
}