forked from OSchip/llvm-project
parent
dcf85a8d18
commit
115393ce66
|
@ -1,3 +1,3 @@
|
|||
// RUN: %clang_cc1 %s -fsyntax-only -verify
|
||||
// rdar: // 8632525
|
||||
// rdar://8632525
|
||||
extern id objc_msgSend(id self, SEL op, ...);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
||||
// rdar:// 8191774
|
||||
// rdar://8191774
|
||||
|
||||
@protocol SomeProtocol
|
||||
@end
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: %clang_cc1 -fobjc-nonfragile-abi -verify -fsyntax-only %s
|
||||
// rdar : // 8225011
|
||||
// rdar://8225011
|
||||
|
||||
int glob; // expected-note {{global variable declared here}}
|
||||
|
||||
|
@ -15,7 +15,7 @@ int glob; // expected-note {{global variable declared here}}
|
|||
@implementation I
|
||||
- (int) Meth { return glob; } // expected-warning {{when default property synthesis is on, 'glob' lookup will access}}
|
||||
@synthesize glob;
|
||||
// rdar: // 8248681
|
||||
// rdar://8248681
|
||||
- (int) Meth1: (int) p {
|
||||
extern int le;
|
||||
int l = 1;
|
||||
|
|
|
@ -94,7 +94,7 @@
|
|||
|
||||
@implementation SubClass @end
|
||||
|
||||
// rdar: // 7920807
|
||||
// rdar://7920807
|
||||
@interface C @end
|
||||
@interface C (Category)
|
||||
@property int p; // expected-warning {{property 'p' requires method 'p' to be defined }} \
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
||||
// RUN: %clang_cc1 -x objective-c++ -fsyntax-only -verify %s
|
||||
// rdar: // 8308053
|
||||
// rdar://8308053
|
||||
|
||||
@interface I {
|
||||
__attribute__((iboutletcollection(I))) id ivar1;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
||||
// rdar:// 6812436
|
||||
// rdar://6812436
|
||||
|
||||
@interface A @end
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
- (void) foo11 : (int)x, ... __attribute__ ((__sentinel__(1,1,3))); // expected-error {{attribute requires 0, 1 or 2 argument(s)}}
|
||||
- (void) foo12 : (int)x, ... ATTR; // expected-note {{method has been explicitly marked sentinel here}}
|
||||
|
||||
// rdar:// 7975788
|
||||
// rdar://7975788
|
||||
- (id) foo13 : (id)firstObj, ... __attribute__((sentinel(0,1)));
|
||||
- (id) foo14 : (id)firstObj : (Class)secondObj, ... __attribute__((sentinel(0,1)));
|
||||
- (id) foo15 : (id*)firstObj, ... __attribute__((sentinel(0,1)));
|
||||
|
@ -40,7 +40,7 @@ int main ()
|
|||
|
||||
[p foo12:1]; // expected-warning {{not enough variable arguments in 'foo12:' declaration to fit a sentinel}}
|
||||
|
||||
// rdar:// 7975788
|
||||
// rdar://7975788
|
||||
[ p foo13 : NULL];
|
||||
[ p foo14 : 0 : NULL];
|
||||
[ p foo16 : NULL];
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
||||
// rdar: // 7766184
|
||||
// rdar://7766184
|
||||
|
||||
@interface Foo @end
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
||||
// rdar: //8528170
|
||||
// rdar://8528170
|
||||
|
||||
@interface NSObject @end
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
||||
// rdar: // 7884086
|
||||
// rdar://7884086
|
||||
|
||||
@interface NSObject @end
|
||||
|
||||
|
|
|
@ -12,5 +12,5 @@
|
|||
}
|
||||
@end
|
||||
|
||||
// rdar: // 7823675
|
||||
// rdar://7823675
|
||||
int f0(I *a) { return a->IP; } // expected-error {{instance variable 'IP' is protected}}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
||||
// rdar 7634850
|
||||
// rdar://7634850
|
||||
|
||||
@interface Foo
|
||||
- (void)foo:(Class)class; // expected-note{{passing argument to parameter 'class' here}}
|
||||
|
|
Loading…
Reference in New Issue