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
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
inherit
/
conv1.C
blob
e16c489a23544b6805f0f40f1dca9b122f02e10a
1
typedef struct _A A;
2
typedef struct _A B;
3
4
void some_function(B *b);
5
6
class AClass {
7
8
public:
9
operator A*() { return 0;}
10
11
};
12
13
class BClass :public AClass {
14
15
public:
16
operator B*() { return 0;}
17
18
};
19
20
int main(int argc, char **argv) {
21
BClass b;
22
some_function(b);
23
}