Added to test Objective-C strings.
From-SVN: r35333
This commit is contained in:
parent
d4eb109cb1
commit
fb2a508138
8
gcc/testsuite/objc/execute/string1.m
Normal file
8
gcc/testsuite/objc/execute/string1.m
Normal file
@ -0,0 +1,8 @@
|
||||
#include <stdio.h>
|
||||
#include <objc/NXConstStr.h>
|
||||
|
||||
int main(int argc, void **args)
|
||||
{
|
||||
printf ([@"this is a string\n" cString]);
|
||||
return 0;
|
||||
}
|
8
gcc/testsuite/objc/execute/string2.m
Normal file
8
gcc/testsuite/objc/execute/string2.m
Normal file
@ -0,0 +1,8 @@
|
||||
#include <stdio.h>
|
||||
#include <objc/NXConstStr.h>
|
||||
|
||||
int main(int argc, void **args)
|
||||
{
|
||||
printf ([@"this " @"is " @"a " @"string\n" cString]);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user