2022-03-30 17:21:33 -07:00
|
|
|
// RUN: rm -rf %t
|
2024-04-03 10:18:05 +01:00
|
|
|
// RUN: %clang_cc1 -extract-api --pretty-sgf --emit-sgf-symbol-labels-for-testing \
|
|
|
|
// RUN: -triple arm64-apple-macosx -x objective-c-header %s -o - -verify | FileCheck %s
|
2022-03-30 17:21:33 -07:00
|
|
|
|
2024-04-03 10:18:05 +01:00
|
|
|
@protocol Protocol
|
|
|
|
@end
|
2022-03-30 17:21:33 -07:00
|
|
|
|
|
|
|
@interface Interface
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface Interface (Category) <Protocol>
|
2024-04-03 10:18:05 +01:00
|
|
|
// CHECK-DAG: "!testRelLabel": "conformsTo $ c:objc(cs)Interface $ c:objc(pl)Protocol"
|
2022-03-30 17:21:33 -07:00
|
|
|
@property int Property;
|
2024-04-03 10:18:05 +01:00
|
|
|
// CHECK-DAG: "!testRelLabel": "memberOf $ c:objc(cs)Interface(py)Property $ c:objc(cs)Interface"
|
2022-03-30 17:21:33 -07:00
|
|
|
- (void)InstanceMethod;
|
2024-04-03 10:18:05 +01:00
|
|
|
// CHECK-DAG: "!testRelLabel": "memberOf $ c:objc(cs)Interface(im)InstanceMethod $ c:objc(cs)Interface"
|
2022-03-30 17:21:33 -07:00
|
|
|
+ (void)ClassMethod;
|
2024-04-03 10:18:05 +01:00
|
|
|
// CHECK-DAG: "!testRelLabel": "memberOf $ c:objc(cs)Interface(cm)ClassMethod $ c:objc(cs)Interface"
|
2022-03-30 17:21:33 -07:00
|
|
|
@end
|
|
|
|
|
2024-04-03 10:18:05 +01:00
|
|
|
// expected-no-diagnostics
|