llvm.org GIT mirror llvm / e79562d
Test case for 95958. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95959 91177308-0d34-0410-b5e6-96231b3b80d8 Evan Cheng 10 years ago
1 changed file(s) with 18 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 // RUN: %llvmgcc -x objective-c -fwritable-strings -S %s -o - | FileCheck %s
1 // CHECK: @.str = private constant
2 // CHECK: @.str1 = private global
3 // .str1 should have linker_private linkage. It will be fixed next.
4
5 // rdar://7634471
6
7 @class NSString;
8
9 @interface A
10 - (void)foo:(NSString*)msg;
11 - (void)bar:(const char*)msg;
12 @end
13
14 void func(A *a) {
15 [a foo:@"Hello world!"];
16 [a bar:"Goodbye world!"];
17 }