mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 08:23:21 +01:00
ec7c842bfa
llvm-svn: 123663
18 lines
363 B
Objective-C
18 lines
363 B
Objective-C
// RUN: %llvmgcc -x objective-c -fwritable-strings -S %s -o - | FileCheck %s
|
|
// CHECK: @.str = private unnamed_addr constant
|
|
// CHECK: @.str1 = internal unnamed_addr global
|
|
|
|
// 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!"];
|
|
}
|