OSDN Git Service

2005-11-26 Andrew Pinski <pinskia@physics.uc.edu>
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 27 Nov 2005 01:14:39 +0000 (01:14 +0000)
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 27 Nov 2005 01:14:39 +0000 (01:14 +0000)
        * objc.dg/gnu-runtime-3.m: Simplify.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107556 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/objc.dg/gnu-runtime-3.m

index 2cbcd6d..1ca403c 100644 (file)
@@ -1,5 +1,9 @@
 2005-11-26  Andrew Pinski  <pinskia@physics.uc.edu>
 
+       * objc.dg/gnu-runtime-3.m: Simplify.
+
+2005-11-26  Andrew Pinski  <pinskia@physics.uc.edu>
+
        PR middle-end/23669
        * gcc.dg/tree-ssa/divide-1.c: New test.
        * gcc.dg/tree-ssa/divide-2.c: New test.
index 09204e3..6fc113d 100644 (file)
@@ -1,5 +1,4 @@
-/* Sanity check for GNU-runtime version of constant strings,
-   regardless of runtime used on target system.  */
+/* Sanity check for GNU-runtime regardless of runtime used on target system.  */
 
 /* { dg-do run } */
 /* { dg-options "-fgnu-runtime" } */
@@ -8,23 +7,8 @@
 #include <string.h>
 #include <stdlib.h>
 
-@interface NXConstantString: Object
-{
-  char *c_string;
-  unsigned int len;                                                     
-}
--(const char *) cString;
--(unsigned int) length;
-@end
-
-@implementation NXConstantString
--(const char *) cString { return c_string; }
--(unsigned int) length  { return len; }
-@end
-
 int main(int argc, void **args)
 {
-  if (strcmp ([@"this is a string" cString], "this is a string"))
-    abort ();
+  [Object new];
   return 0;
 }