mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Test case for 95958.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95959 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c96f6d606f
commit
e79562dce0
18
test/FrontendObjC/2010-02-11-fwritable-stringsBug.m
Normal file
18
test/FrontendObjC/2010-02-11-fwritable-stringsBug.m
Normal 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!"];
|
||||
}
|
Loading…
Reference in New Issue
Block a user