xref: /minix3/external/bsd/llvm/dist/clang/test/SemaObjCXX/cxxoperator-selector.mm (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
2*f4a2713aSLionel Sambuc// rdar:// 8328250
3*f4a2713aSLionel Sambuc
4*f4a2713aSLionel Sambuc@class NSDate;
5*f4a2713aSLionel Sambuc
6*f4a2713aSLionel Sambuc@interface XSGraphDataSet
7*f4a2713aSLionel Sambuc- and;
8*f4a2713aSLionel Sambuc- xor;
9*f4a2713aSLionel Sambuc- or;
10*f4a2713aSLionel Sambuc
11*f4a2713aSLionel Sambuc- ||; // expected-error {{expected selector for Objective-C method}}
12*f4a2713aSLionel Sambuc
13*f4a2713aSLionel Sambuc- &&; // expected-error {{expected selector for Objective-C method}}
14*f4a2713aSLionel Sambuc
15*f4a2713aSLionel Sambuc- (void)dataSetForValuesBetween:(NSDate *)startDate and:(NSDate *)endDate;
16*f4a2713aSLionel Sambuc@end
17*f4a2713aSLionel Sambuc
18*f4a2713aSLionel Sambuc@implementation XSGraphDataSet
19*f4a2713aSLionel Sambuc- (id) and{return 0; };
20*f4a2713aSLionel Sambuc- (id) xor{return 0; };
21*f4a2713aSLionel Sambuc- (id) or{return 0; };
22*f4a2713aSLionel Sambuc
23*f4a2713aSLionel Sambuc- (void)dataSetForValuesBetween:(NSDate *)startDate and:(NSDate *)endDate { return; }
24*f4a2713aSLionel Sambuc@end
25