Test case for 95958.
[oota-llvm.git] / test / FrontendObjC / 2010-02-11-fwritable-stringsBug.m
1 // 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
15 void func(A *a) {
16   [a foo:@"Hello world!"];
17   [a bar:"Goodbye world!"];
18 }