aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGenObjC/property-section-attribute.m
blob: 9d3d27ea64efe15c4d7bfe8740d2c174554c3d97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s

@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" {