1 | // RUN: c-index-test -write-pch %t.macho.ast -target i686-apple-darwin %s |
2 | // RUN: c-index-test -test-print-manglings %t.macho.ast | FileCheck --check-prefix=MACHO %s |
3 | |
4 | // RUN: c-index-test -write-pch %t.itanium.ast -target i686-pc-linux-gnu %s |
5 | // RUN: c-index-test -test-print-manglings %t.itanium.ast | FileCheck --check-prefix=ITANIUM %s |
6 | |
7 | @interface C |
8 | @end |
9 | |
10 | // MACHO: ObjCInterfaceDecl=C{{.*}} [mangled=_OBJC_CLASS_$_C] [mangled=_OBJC_METACLASS_$_C] |
11 | // ITANIUM: ObjCInterfaceDecl=C{{.*}} [mangled=_OBJC_CLASS_C] [mangled=_OBJC_METACLASS_C] |
12 | |
13 | @implementation C |
14 | @end |
15 | |
16 | // MACHO: ObjCImplementationDecl=C{{.*}} (Definition) [mangled=_OBJC_CLASS_$_C] [mangled=_OBJC_METACLASS_$_C] |
17 | // ITANIUM: ObjCImplementationDecl=C{{.*}} (Definition) [mangled=_OBJC_CLASS_C] [mangled=_OBJC_METACLASS_C] |
18 | |
19 | |