Skip to content

Commit 2e0667d

Browse files
committed
Modifying the test to include valid Objective-C with
1 parent 66c3b0b commit 2e0667d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

clang/test/Parser/objc-coloncolon.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ - (instancetype)init:(::A *) foo; // expected-error {{expected a type}}
88
@end
99

1010
@implementation A
11+
- (void)performSelector:(SEL)selector {}
12+
- (void)double:(int)firstArg :(int)secondArg colon:(int)thirdArg {}
13+
- (void)test {
14+
// The `::` below should not trigger an error.
15+
[self performSelector:@selector(double::colon:)];
16+
}
1117
+ (int) getGV { return ::GV; } // expected-error {{expected a type}}
1218
- (instancetype)init:(::A *) foo { return self; } // expected-error {{expected a type}}
1319
@end

0 commit comments

Comments
 (0)