| 1 |
// RUN: %clang_cc1 -verify -fsyntax-only -fobjc-arc %s |
| 2 |
|
| 3 |
__attribute__((__swift_private__)) |
| 4 |
@protocol P |
| 5 |
@end |
| 6 |
|
| 7 |
__attribute__((__swift_private__)) |
| 8 |
@interface I |
| 9 |
@end |
| 10 |
|
| 11 |
@interface J |
| 12 |
@property id property __attribute__((__swift_private__)); |
| 13 |
- (void)instanceMethod __attribute__((__swift_private__)); |
| 14 |
+ (void)classMethod __attribute__((__swift_private__)); |
| 15 |
@end |
| 16 |
|
| 17 |
void f(void) __attribute__((__swift_private__)); |
| 18 |
|
| 19 |
struct __attribute__((__swift_private__)) S {}; |
| 20 |
|
| 21 |
enum __attribute__((__swift_private__)) E { |
| 22 |
one, |
| 23 |
two, |
| 24 |
}; |
| 25 |
|
| 26 |
typedef struct { } T __attribute__((__swift_private__)); |
| 27 |
|
| 28 |
void g(void) __attribute__((__swift_private__("private"))); |
| 29 |
// expected-error@-1 {{'__swift_private__' attribute takes no arguments}} |