mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-10 18:11:19 +00:00
187770dc74
private symbols in the __DATA segment internal. This prevents the linker from removing the symbol names. Keeping the symbols visible enables tools to collect various information about the symbols, for example, tools that discover whether or not a symbol gets dirtied. rdar://problem/48887111 Differential Revision: https://reviews.llvm.org/D61454 llvm-svn: 360359
21 lines
470 B
Objective-C
21 lines
470 B
Objective-C
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
|
|
|
|
// rdar : // 8093297
|
|
|
|
@interface Foo @end
|
|
|
|
@protocol Proto
|
|
@property (readonly) int proto_property;
|
|
@end
|
|
|
|
@interface Foo (Category) <Proto> @end
|
|
|
|
@implementation Foo (Category)
|
|
-(int)proto_property { return 0; }
|
|
@end
|
|
|
|
|
|
// CHECK: _OBJC_$_PROP_LIST_Foo_$_Category" = internal global
|
|
// CHECK: _OBJC_$_CATEGORY_Foo_$_Category" = internal global
|
|
// CHECK: _OBJC_$_PROP_LIST_Foo_$_Category
|