diff options
| author | Ovidiu Predescu <ovidiu@gcc.gnu.org> | 2000-07-30 05:45:10 +0000 |
|---|---|---|
| committer | Ovidiu Predescu <ovidiu@gcc.gnu.org> | 2000-07-30 05:45:10 +0000 |
| commit | fb2a508138fd925d9e93725bcd87e17cc5a98b79 (patch) | |
| tree | b4d1ad3e11fc47be3c32b76ce7eeb8e203ae678a | |
| parent | d4eb109cb1c27297c132a95373ae46b9adf78962 (diff) | |
| download | gcc-fb2a508138fd925d9e93725bcd87e17cc5a98b79.zip gcc-fb2a508138fd925d9e93725bcd87e17cc5a98b79.tar.gz gcc-fb2a508138fd925d9e93725bcd87e17cc5a98b79.tar.bz2 | |
Added to test Objective-C strings.
From-SVN: r35333
| -rw-r--r-- | gcc/testsuite/objc/execute/string1.m | 8 | ||||
| -rw-r--r-- | gcc/testsuite/objc/execute/string2.m | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/objc/execute/string1.m b/gcc/testsuite/objc/execute/string1.m new file mode 100644 index 0000000..f0d1473 --- /dev/null +++ b/gcc/testsuite/objc/execute/string1.m @@ -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; +} diff --git a/gcc/testsuite/objc/execute/string2.m b/gcc/testsuite/objc/execute/string2.m new file mode 100644 index 0000000..247e22b --- /dev/null +++ b/gcc/testsuite/objc/execute/string2.m @@ -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; +} |
