llvm-project/llvm/test/FrontendObjC/2010-02-11-fwritable-string...

18 lines
337 B
Mathematica
Raw Normal View History

2010-02-12 10:02:23 +08:00
// RUN: %llvmgcc -x objective-c -fwritable-strings -S %s -o - | FileCheck %s
// CHECK: @.str = private constant
2010-02-12 10:35:03 +08:00
// CHECK: @.str1 = internal global
2010-02-12 10:02:23 +08:00
// 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!"];
}