You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
626 B

// RUN: %clang_cc1 -ast-dump %s | FileCheck %s
@interface I
- (void)method __attribute__((__swift_private__));
@end
// CHECK: ObjCInterfaceDecl {{.*}} I
// CHECK: ObjCMethodDecl {{.*}} method 'void'
// CHECK: SwiftPrivateAttr
@interface J : I
- (void)method;
@end
// CHECK: ObjCInterfaceDecl {{.*}} J
// CHECK: ObjCMethodDecl {{.*}} method 'void'
// CHECK: SwiftPrivateAttr {{.*}} Inherited
void f(void) __attribute__((__swift_private__));
// CHECK: FunctionDecl {{.*}} f 'void (void)'
// CHECK: SwiftPrivateAttr
void f(void) {
}
// CHECK: FunctionDecl {{.*}} f 'void (void)'
// CHECK: SwiftPrivateAttr {{.*}} Inherited