[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:
@@ -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": [
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user