• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
17void f(void) __attribute__((__swift_private__));
18
19struct __attribute__((__swift_private__)) S {};
20
21enum __attribute__((__swift_private__)) E {
22  one,
23  two,
24};
25
26typedef struct { } T __attribute__((__swift_private__));
27
28void g(void) __attribute__((__swift_private__("private")));
29// expected-error@-1 {{'__swift_private__' attribute takes no arguments}}
30