代码搜索:operators
找到约 8,993 项符合「operators」的源代码
代码结果 8,993
www.eeworm.com/read/366702/2870884
c operators14.c
// { dg-do assemble }
// GROUPS passed operators
void foo (int * a, int * b, int * c) {}
int main() {
int a,b,c;
foo (&a, &b, &c);
(a = b) = c;
}
www.eeworm.com/read/366702/2870886
c operators22.c
// { dg-do assemble }
// GROUPS passed operators
template
class t {
public:
t() {}
};
class m {
t c;
public:
m() : c() {}
};
m *p() {return new m;}
www.eeworm.com/read/366702/2870890
c operators11.c
// { dg-do assemble }
// GROUPS passed operators
// opr-eq file
// Message-Id:
// From: rowlands@hc.ti.com (Jon Rowlands)
// Subject: g++ 2.4.5: assignment operator in base cl
www.eeworm.com/read/366702/2870901
c operators3.c
// { dg-do assemble }
// GROUPS passed operators
class X { };
void operator->(X& a, X& b) {} // MUST be a member function// { dg-error "" } .*
www.eeworm.com/read/366702/2870975
c operators1.c
// { dg-do assemble }
// GROUPS passed operators
struct A {
int x;
};
int operator()(A x,float y) { // MUST be a member function// { dg-error "" } .*
return 1;
}
int main() {
A x;
x(1.0); // {
www.eeworm.com/read/366702/2871013
c operators2.c
// { dg-do assemble }
// GROUPS passed operators
class X { };
void operator[](X& a, X& b) {} // MUST be a member function// { dg-error "" } .*
www.eeworm.com/read/366702/2871061
c operators6.c
// { dg-do assemble }
// GROUPS passed operators
class a {
public:
a* operator->() { return this; }
void p();
};
void a::p() {
operator->();
}
www.eeworm.com/read/366702/2871068
c operators8.c
// { dg-do assemble }
// GROUPS passed operators
struct A {
char *p;
operator char *();
};
char foo(A a)
{
return a[0];
}
www.eeworm.com/read/366702/2871103
c operators4.c
// { dg-do assemble }
// { dg-options "" }
// GROUPS passed operators
// Check that the & operator, when applied to a global function
// or member function returns a proper value as long as the cont
www.eeworm.com/read/366702/2871153
c operators7.c
// { dg-do assemble }
// GROUPS passed operators
class A {
char *p;
public:
operator const char *() const { return p; }
};
int foo(const A &a)
{
return (a != 0);
}