cddc9993ea
The outputs between the direct ast-dump test and the ast-dump test after deserialization should match modulo a few differences. For hand-written tests, strip the "<undeserialized declarations>"s and the "imported"s with sed. For tests generated with "make-ast-dump-check.sh", regenerate the output. Part 3/n.
32 lines
1 KiB
Objective-C
32 lines
1 KiB
Objective-C
// Test without serialization:
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
// RUN: %clang_cc1 -fsyntax-only -ast-dump %s | FileCheck %s
|
|
//
|
|
// Test with serialization:
|
|
// RUN: %clang_cc1 -emit-pch -o %t %s
|
|
// RUN: %clang_cc1 -x objective-c -include-pch %t -ast-dump-all /dev/null \
|
|
// RUN: | sed -e "s/ <undeserialized declarations>//" -e "s/ imported//" \
|
|
// RUN: | FileCheck %s
|
|
//
|
|
// expected-no-diagnostics
|
|
|
|
__attribute__ ((external_source_symbol(language= "Swift", defined_in="A")))
|
|
@interface TestInterface
|
|
@end
|
|
// CHECK: ObjCInterfaceDecl {{.*}} TestInterface
|
|
// CHECK-NEXT: ExternalSourceSymbolAttr
|
|
|
|
__attribute__ ((external_source_symbol(language= "Swift", defined_in="B")))
|
|
@interface TestInterface ()
|
|
@end
|
|
// CHECK: ObjCCategoryDecl
|
|
// CHECK-NEXT: ObjCInterface
|
|
// CHECK-NEXT: ExternalSourceSymbolAttr {{.*}} "Swift" "B"
|
|
|
|
__attribute__ ((external_source_symbol(language= "Swift", defined_in="C")))
|
|
@interface TestInterface (Category)
|
|
@end
|
|
// CHECK: ObjCCategoryDecl
|
|
// CHECK-NEXT: ObjCInterface
|
|
// CHECK-NEXT: ExternalSourceSymbolAttr {{.*}} "Swift" "C"
|