diff options
Diffstat (limited to 'test/CodeGenObjC/property-section-attribute.m')
-rw-r--r-- | test/CodeGenObjC/property-section-attribute.m | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGenObjC/property-section-attribute.m b/test/CodeGenObjC/property-section-attribute.m new file mode 100644 index 0000000000000..5ba064c6126fb --- /dev/null +++ b/test/CodeGenObjC/property-section-attribute.m @@ -0,0 +1,13 @@ +// 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" { |