mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-22 15:31:00 +00:00
6bc3a7703b
metadata and protocol list The leading 'l' tells ld64 to remove the symbol name, which can make debugging difficult. rdar://problem/47256637 Differential Revision: https://reviews.llvm.org/D59234 llvm-svn: 356156
18 lines
401 B
Objective-C
18 lines
401 B
Objective-C
// RUN: %clang_cc1 -triple x86_64-apple-macosx -emit-llvm %s -o - | FileCheck %s
|
|
|
|
// Test that we produce a declaration for the protocol. It must be matched
|
|
// by a definition in another TU, so external is the correct linkage
|
|
// (not extern_weak).
|
|
// CHECK: @"_OBJC_PROTOCOL_$_p1" = external global
|
|
|
|
@interface NSObject
|
|
@end
|
|
|
|
@protocol p1;
|
|
|
|
@interface I1 : NSObject <p1>
|
|
@end
|
|
|
|
@implementation I1
|
|
@end
|