| 1 |
// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s |
| 2 |
|
| 3 |
@class NSDate; |
| 4 |
|
| 5 |
@interface XSGraphDataSet |
| 6 |
- and; |
| 7 |
- xor; |
| 8 |
- or; |
| 9 |
|
| 10 |
- ||; // expected-error {{expected selector for Objective-C method}} |
| 11 |
|
| 12 |
- &&; // expected-error {{expected selector for Objective-C method}} |
| 13 |
|
| 14 |
- (void)dataSetForValuesBetween:(NSDate *)startDate and:(NSDate *)endDate; |
| 15 |
@end |
| 16 |
|
| 17 |
@implementation XSGraphDataSet |
| 18 |
- (id) and{return 0; }; |
| 19 |
- (id) xor{return 0; }; |
| 20 |
- (id) or{return 0; }; |
| 21 |
|
| 22 |
- (void)decltype {} |
| 23 |
- (void)constexpr {} |
| 24 |
- (void)noexcept {} |
| 25 |
- (void)nullptr {} |
| 26 |
|
| 27 |
- (void)dataSetForValuesBetween:(NSDate *)startDate and:(NSDate *)endDate { return; } |
| 28 |
@end |