llvm-capstone/clang/test/CodeGenObjC/encode-cstyle-method.m
Saleem Abdulrasool 3f307518f8 CodeGen: mark ObjC cstring literals as unnamed_addr
These are all emitted into a section with a cstring_literal attribute.  The
attribute permits the linker to coalesce the string contents.  The address of
the strings are not important.

llvm-svn: 281855
2016-09-18 16:12:14 +00:00

12 lines
352 B
Objective-C

// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - %s | FileCheck -check-prefix CHECK-LP64 %s
// rdar: // 7445205
@interface Foo
- (id)test:(id)one, id two;
@end
@implementation Foo
- (id)test:(id )one, id two {return two; } @end
// CHECK-LP64: private unnamed_addr constant [11 x i8] c"@24@0:8@16