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
* c-common.c (get_priority): Add check for
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
partial3.C
blob
f62f915663995ad741529a1fbc44dcd5101eac46
1
// { dg-do run }
2
// Test that partial ordering works between conversion ops from different
3
// classes.
4
// From Jason Merrill <jason@cygnus.com>
5
6
struct A {
7
template <class T> operator T*() { return 0; }
8
};
9
struct B : public A {
10
template <class T> operator T();
11
};
12
13
int main()
14
{
15
B b;
16
(void*) b;
17
}