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