1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Test case for 95958.

llvm-svn: 95959
This commit is contained in:
Evan Cheng 2010-02-12 02:02:23 +00:00
parent bde30aec54
commit 86a3020e95

View File

@ -0,0 +1,18 @@
// RUN: %llvmgcc -x objective-c -fwritable-strings -S %s -o - | FileCheck %s
// CHECK: @.str = private constant
// CHECK: @.str1 = private global
// .str1 should have linker_private linkage. It will be fixed next.
// rdar://7634471
@class NSString;
@interface A
- (void)foo:(NSString*)msg;
- (void)bar:(const char*)msg;
@end
void func(A *a) {
[a foo:@"Hello world!"];
[a bar:"Goodbye world!"];
}