diff options
Diffstat (limited to 'gcc/testsuite/objc/execute/string4.m')
-rw-r--r-- | gcc/testsuite/objc/execute/string4.m | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/objc/execute/string4.m b/gcc/testsuite/objc/execute/string4.m new file mode 100644 index 00000000000..54550d6f5e9 --- /dev/null +++ b/gcc/testsuite/objc/execute/string4.m @@ -0,0 +1,12 @@ +/* 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) +{ + if ([@"this is a string" length] != strlen ("this is a string")) + abort (); + return 0; +} |