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
Fix warnings occured during profiledboostrap on
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
overload6.C
blob
765c20d386bd20f9cfda853a44c7a856ee89210e
1
// { dg-do assemble }
2
// Bug: g++ thinks there is a default conversion from void* to B*.
3
// There isn't.
4
5
struct A {
6
operator void* ();
7
};
8
9
struct B { };
10
11
void foo (B* bp);
12
13
void bar (A& a) {
14
foo (a); // { dg-error "" }
15
}