blob: 7edd9b422628830443c7b29122fb88d424aabc40 [file] [log] [blame]
Evan Chenge79562d2010-02-12 02:02:23 +00001// RUN: %llvmgcc -x objective-c -fwritable-strings -S %s -o - | FileCheck %s
2// CHECK: @.str = private constant
3// CHECK: @.str1 = private global
4// .str1 should have linker_private linkage. It will be fixed next.
5
6// rdar://7634471
7
8@class NSString;
9
10@interface A
11- (void)foo:(NSString*)msg;
12- (void)bar:(const char*)msg;
13@end
14
15void func(A *a) {
16 [a foo:@"Hello world!"];
17 [a bar:"Goodbye world!"];
18}