llvm-project/clang/test/CodeGenObjC/property-section-attribute.m
Fariborz Jahanian cb8c7da266 ObjectiveC. support "section" attribute on properties
and methods. rdar://15450637

llvm-svn: 197625
2013-12-18 23:09:57 +00:00

14 lines
399 B
Objective-C

// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
// rdar://15450637.
@interface NSObject @end
@interface Foo : NSObject
@property int p __attribute__((section("__TEXT,foo")));
@end
@implementation Foo @end
// CHECK: define internal i32 @"\01-[Foo p]"({{.*}} section "__TEXT,foo" {
// CHECK: define internal void @"\01-[Foo setP:]"({{.*}} section "__TEXT,foo" {