OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge in xfails from PR14107.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
p9068.C
1
// { dg-do assemble }
2
// prms-id: 9068
3
4
struct ostream {
5
void operator<< (int); // { dg-error "" } 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 "" } no such i for any opr << ()
17
}
18
19
int& C::i () {
20
static int _i = 4711;
21
return _i;
22
}