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