2012-06-20 14:18:46 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - %s
|
2010-06-18 03:56:20 +08:00
|
|
|
// PR7390
|
|
|
|
|
|
|
|
@interface NSObject {}
|
2010-06-18 05:45:48 +08:00
|
|
|
- (void)respondsToSelector:(const SEL&)s : (SEL*)s1;
|
2010-06-18 03:56:20 +08:00
|
|
|
- (void) setPriority:(int)p;
|
|
|
|
- (void)Meth;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation NSObject
|
|
|
|
- (void)Meth {
|
|
|
|
[self respondsToSelector:@selector(setPriority:) : &@selector(setPriority:)];
|
|
|
|
}
|
|
|
|
- (void) setPriority:(int)p{}
|
2010-06-18 05:45:48 +08:00
|
|
|
- (void)respondsToSelector:(const SEL&)s : (SEL*)s1 {}
|
2010-06-18 03:56:20 +08:00
|
|
|
@end
|