summaryrefslogtreecommitdiff
path: root/clang/test/FixIt/fixit-static-object-decl.m
blob: e13900fa786f483a6ffc218e3938ee18d70e8d33 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Objective-C recovery
// RUN: cp %s %t
// RUN: not %clang_cc1 -fixit -x objective-c %t
// RUN: %clang_cc1 -fsyntax-only -Werror -x objective-c %t

// Objective-C++ recovery
// RUN: cp %s %t
// RUN: not %clang_cc1 -fixit -x objective-c++ %t
// RUN: %clang_cc1 -fsyntax-only -Werror -x objective-c++ %t
// rdar://9603056

@interface S @end

@interface NSArray
{
@public
  S iS;
}
+ (id) arrayWithObjects;
@end

NSArray func() {
  NSArray P;
  return P;
}

int main() {
  	NSArray pluginNames = [NSArray arrayWithObjects];
}