URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [partial5.C] - Rev 154
Compare with Previous | Blame | View Log
// { dg-do run }
// Test that partial ordering ignores defaulted parms and 'this'.
struct A {
template<class T> int f(T) { return 1; }
template<class T> int f(T*, int=0) { return 0; }
template<class T> int g(T*) { return 0; }
template<class T> static int g(T, int=0) { return 1; }
template<class T> int h(T*) { return 0; }
template<class T> static int h(T, int=0) { return 1; }
template<class T> static int j(T*, short y=0) { return 0; }
template<class T> static int j(T, int=0) { return 1; }
};
int main(void) {
A a;
int *p;
return (a.f(p) || a.g(p) || a.h(p) || a.j(p));
}