代码搜索:Method
找到约 10,000 项符合「Method」的源代码
代码结果 10,000
www.eeworm.com/read/162614/5522771
mm method-11.mm
/* Check if class references (generated for the NeXT runtime) are appropriately
folded. This test is safe to run on all targets. */
/* Author: Ziemowit Laski . */
/* { dg-opti
www.eeworm.com/read/162614/5522776
mm method-10.mm
/* Test for sending messages to aliased classes (and instances thereof). */
/* Author: Ziemowit Laski . */
/* { dg-options "-lobjc" } */
/* { dg-do run } */
#include
www.eeworm.com/read/162614/5522777
mm method-1.mm
/* Test whether casting 'id' to a specific class removes method lookup
ambiguity. */
/* Author: Ziemowit Laski . */
/* { dg-do compile } */
#include
@class Int1
www.eeworm.com/read/162614/5522799
mm method-8.mm
/* Tests of duplication. */
/* { dg-do compile } */
@interface class1
- (int) meth1;
- (void) meth1; /* { dg-error "duplicate declaration of method .\\-meth1." } */
@end
@interface class2
+ (void)
www.eeworm.com/read/162614/5522809
mm method-4.mm
/* Warn about "slightly" mismatched method signatures if
-Wstrict-selector-match is on. */
/* { dg-do compile } */
/* { dg-options "-Wstrict-selector-match" } */
#include
@interf
www.eeworm.com/read/162614/5522814
mm method-20.mm
/* Test if context-sensitive "in", "out", "byref", etc., qualifiers can be
used as method selectors. */
/* Author: Ziemowit Laski . */
/* { dg-do compile } */
@interface Foo
-
www.eeworm.com/read/162614/5522825
mm method-3.mm
/* Do not warn about "slightly" mismatched method signatures if
-Wstrict-selector-match is off. */
/* { dg-do compile } */
/* { dg-options "-Wno-strict-selector-match" } */
#include
www.eeworm.com/read/162614/5522829
mm method-13.mm
/* Check if finding multiple signatures for a method is handled gracefully. Author: Ziemowit Laski */
/* { dg-options "-Wstrict-selector-match" } */
/* { dg-do compile } */
#inc
www.eeworm.com/read/162614/5522833
mm method-15.mm
/* Check if finding multiple signatures for a method is handled gracefully when method lookup succeeds (see also method-7.m). */
/* Contributed by Ziemowit Laski */
/* { dg-option
www.eeworm.com/read/162614/5522838
mm method-21.mm
/* Test for spurious "may or may not return a value" warnings. */
/* { dg-do compile } */
/* { dg-options "-Wextra" } */
#include
@interface Foo: Object
- (id) meth1;
- (void) meth2