1
0
mirror of https://github.com/c64scene-ar/llvm-6502.git synced 2024-12-21 00:32:23 +00:00
llvm-6502/test/FrontendObjC/2010-02-11-fwritable-stringsBug.m
2011-01-17 17:54:17 +00:00

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!"];
}