1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/test/FrontendObjC/2010-02-11-fwritable-stringsBug.m
Evan Cheng 06c22ed109 Test for 95961.
llvm-svn: 95962
2010-02-12 02:35:03 +00:00

18 lines
337 B
Objective-C

// RUN: %llvmgcc -x objective-c -fwritable-strings -S %s -o - | FileCheck %s
// CHECK: @.str = private constant
// CHECK: @.str1 = internal 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!"];
}