diff options
Diffstat (limited to 'gcc/testsuite/objc/execute/string2.m')
-rw-r--r-- | gcc/testsuite/objc/execute/string2.m | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/testsuite/objc/execute/string2.m b/gcc/testsuite/objc/execute/string2.m index 247e22bc3d6..66462b3c96c 100644 --- a/gcc/testsuite/objc/execute/string2.m +++ b/gcc/testsuite/objc/execute/string2.m @@ -1,8 +1,13 @@ -#include <stdio.h> +/* Based on a test case contributed by Nicola Pero. */ + +#include <string.h> +#include <stdlib.h> #include <objc/NXConstStr.h> int main(int argc, void **args) { - printf ([@"this " @"is " @"a " @"string\n" cString]); + if (strcmp ([@"this " @"is " @"a " @"string" cString], + "this " "is " "a " "string")) + abort (); return 0; } |