xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenObjC/property-section-attribute.m (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
2// rdar://15450637.
3
4@interface NSObject @end
5
6@interface Foo : NSObject
7@property int p __attribute__((section("__TEXT,foo")));
8@end
9
10@implementation Foo @end
11
12// CHECK: define internal i32 @"\01-[Foo p]"({{.*}} section "__TEXT,foo" {
13// CHECK: define internal void @"\01-[Foo setP:]"({{.*}} section "__TEXT,foo" {
14