[ExtractAPI] fix filecheck annotation (#92231)

moved fix for ExtractAPI from
https://github.com/llvm/llvm-project/pull/91854,
https://github.com/llvm/llvm-project/pull/91854#pullrequestreview-2052128349

Also noticed typo here, prefix `E` but check for `C`, fixed too:

ca4a405232/clang/test/ExtractAPI/availability.c (L43-L65)

Co-authored-by: klensy <nightouser@gmail.com>
Co-authored-by: Prajwal Nadig <pnadig@apple.com>
This commit is contained in:
klensy
2026-04-08 19:21:08 +03:00
committed by GitHub
parent 0f3e448c98
commit fd09e8f814
2 changed files with 2 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ void b(void) __attribute__((availability(macos, introduced=11.0, deprecated=12.0
// B-NEXT: }
// B-NEXT: ]
// RUN: FileCheck %s --input-file %t/output.symbols.json --check-prefix E
// RUN: FileCheck %s --input-file %t/output.symbols.json --check-prefix C
void c(void) __attribute__((availability(macos, introduced=11.0, deprecated=12.0, obsoleted=30.0))) __attribute__((availability(ios, introduced=13.0)));
// C-LABEL: "!testLabel": "c:@F@c"
// C: "availability": [

View File

@@ -45,7 +45,7 @@
@property(class) int myCategoryTypeProp;
// CHECK-DAG: "!testRelLabel": "memberOf $ c:objc(cs)Interface(cpy)myCategoryTypeProp $ c:objc(cs)Interface"
@property int myCategoryInstanceProp;
// CHECK-DAG "!testRelLabel": "memberOf $ c:objc(cs)Interface(py)myCategoryInstanceProp $ c:objc(cs)Interface"
// CHECK-DAG: "!testRelLabel": "memberOf $ c:objc(cs)Interface(py)myCategoryInstanceProp $ c:objc(cs)Interface"
@end
// expected-no-diagnostics