Make this test not depend on how the variable is named.
[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 = internal global
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 }