代码搜索:Method
找到约 10,000 项符合「Method」的源代码
代码结果 10,000
www.eeworm.com/read/366702/2867767
c method-1.c
/* PR c++/24513 */
/* { dg-do compile } */
struct S
{
void foo (int *p)
{
#pragma omp parallel for
for (int i = 0; i < 1000; ++i)
p[i]=0;
}
void bar ()
{
#pragma omp master
j
www.eeworm.com/read/366702/2872338
mm method-16.mm
/* Ensure that we indeed cannot obtain the value of a message send
if the chosen method signature returns 'void'. There used to
exist a cheesy hack that allowed it. While at it, check that
www.eeworm.com/read/366702/2872341
mm method-2.mm
/* Test if prior method lookup at method @implementation time is not
overly aggressive, leading to methods being found in other classes. */
/* Author: Ziemowit Laski . */
/* {
www.eeworm.com/read/366702/2872345
mm method-6.mm
/* The following should NOT generate "may not respond to" warnings,
since a forward-declared @class (instance) should be treated like a
'Class') ('id'). */
/* { dg-do compile } */
#include
www.eeworm.com/read/366702/2872346
mm method-12.mm
/* Check that sending messages to variables of type 'Class' does not involve instance methods, unless they reside in root classes. */
/* Author: Ziemowit Laski */
/* { dg-options
www.eeworm.com/read/366702/2872348
mm method-17.mm
/* When there is only one candidate method available, make sure the
compiler uses its argument/return types when constructing the
message sends (so that proper C/C++ argument conversions may
www.eeworm.com/read/366702/2872364
mm method-18.mm
/* Contributed by Igor Seleznev . */
/* This used to be broken. */
#include
@interface A
+ (A *)currentContext;
@end
@interface B
+ (B *)currentContext;
@end
int mai
www.eeworm.com/read/366702/2872366
mm method-14.mm
/* Check if casting the receiver type causes method lookup to succeed. This was broken
in Objective-C++. */
/* Contributed by Ziemowit Laski */
/* { dg-do compile } */
@inter
www.eeworm.com/read/366702/2872369
mm method-7.mm
/* Check if sending messages to "underspecified" objects is handled gracefully. */
/* Author: Ziemowit Laski . */
/* { dg-do compile } */
@class UnderSpecified;
typedef struct No
www.eeworm.com/read/366702/2872371
mm method-9.mm
/* Test for lookup of class (factory) methods. */
/* Author: Ziemowit Laski . */
/* { dg-do compile } */
@interface MyBase
- (void) rootInstanceMethod;
@end
@interface MyInterme