blob: 0eaa7f05471618138408580b0ff08e969de695fe [file] [log] [blame]
Douglas Gregor0fbda682010-09-15 14:51:05 +00001// Objective-C recovery
2// RUN: cp %s %t
3// RUN: %clang_cc1 -pedantic -Wall -fixit -x objective-c %t || true
4// RUN: %clang_cc1 -fsyntax-only -pedantic -Wall -Werror -x objective-c %t
5
6// Objective-C++ recovery
7// RUN: cp %s %t
8// RUN: %clang_cc1 -pedantic -Wall -fixit -x objective-c++ %t || true
9// RUN: %clang_cc1 -fsyntax-only -pedantic -Wall -Werror -x objective-c++ %t
10
11@interface A
12- (int)method1:(int)x second:(float)y;
13+ (int)method2:(int)x second:(double)y;
14@end
15
16void f(A *a, int i, int j) {
17 a method1:5+2 second:+(3.14159)];
18 a method1:[a method1:3 second:j] second:i++]
19}