Added to test Objective-C strings.
authorOvidiu Predescu <ovidiu@gcc.gnu.org>
Sun, 30 Jul 2000 05:45:10 +0000 (05:45 +0000)
committerOvidiu Predescu <ovidiu@gcc.gnu.org>
Sun, 30 Jul 2000 05:45:10 +0000 (05:45 +0000)
From-SVN: r35333

gcc/testsuite/objc/execute/string1.m [new file with mode: 0644]
gcc/testsuite/objc/execute/string2.m [new file with mode: 0644]

diff --git a/gcc/testsuite/objc/execute/string1.m b/gcc/testsuite/objc/execute/string1.m
new file mode 100644 (file)
index 0000000..f0d1473
--- /dev/null
@@ -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 (file)
index 0000000..247e22b
--- /dev/null
@@ -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;
+}