1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
2 | // RUN: %clang_cc1 -fsyntax-only -ast-dump %s | FileCheck %s |
3 | // expected-no-diagnostics |
4 | |
5 | __attribute__ ((external_source_symbol(language= "Swift", defined_in="A"))) |
6 | @interface TestInterface |
7 | @end |
8 | // CHECK: ObjCInterfaceDecl {{.*}} TestInterface |
9 | // CHECK-NEXT: ExternalSourceSymbolAttr |
10 | |
11 | __attribute__ ((external_source_symbol(language= "Swift", defined_in="B"))) |
12 | @interface TestInterface () |
13 | @end |
14 | // CHECK: ObjCCategoryDecl |
15 | // CHECK-NEXT: ObjCInterface |
16 | // CHECK-NEXT: ExternalSourceSymbolAttr {{.*}} "Swift" "B" |
17 | |
18 | __attribute__ ((external_source_symbol(language= "Swift", defined_in="C"))) |
19 | @interface TestInterface (Category) |
20 | @end |
21 | // CHECK: ObjCCategoryDecl |
22 | // CHECK-NEXT: ObjCInterface |
23 | // CHECK-NEXT: ExternalSourceSymbolAttr {{.*}} "Swift" "C" |
24 | |