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
* g++.old-deja/g++.benjamin/16077.C: Adjust warnings.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.benjamin
/
16077.C
1
// 981203 bkoz
2
// g++/16077
3
// Build don't link:
4
5
class nicaragua;
6
struct colombia {
7
colombia();
8
colombia(const colombia &);
9
colombia(const nicaragua &);
10
colombia &operator= (const colombia&);
11
};
12
13
struct nicaragua {
14
public:
15
nicaragua();
16
nicaragua(const nicaragua&);
17
operator colombia();
18
};
19
20
void peace(const colombia&);
21
22
void foo(nicaragua& b) {
23
peace(b); // WARNING - // WARNING -
24
}
25
26
27
28