projects
/
gcc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
error.c (dump_function_name): Don't let the user see __comp_ctor.
[gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
p5469.C
1
// prms-id: 5469
2
3
int count;
4
5
class A {
6
A();
7
A(const A&); // ERROR - referenced below
8
public:
9
A(int) { ++count; }
10
~A() { --count; }
11
int operator== (const A& r) { return 0; }
12
};
13
14
int main() {
15
{
16
A a (1);
17
if (a == 2 && a == 1) // ERROR - private copy ctor
18
;
19
}
20
return count;
21
}