gnu-runtime-3.m: Simplify.
authorAndrew Pinski <pinskia@physics.uc.edu>
Sun, 27 Nov 2005 01:14:39 +0000 (01:14 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Sun, 27 Nov 2005 01:14:39 +0000 (17:14 -0800)
2005-11-26  Andrew Pinski  <pinskia@physics.uc.edu>

        * objc.dg/gnu-runtime-3.m: Simplify.

From-SVN: r107556

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

index 2cbcd6deef5bfc409ab952f45074aa4673e163b3..1ca403c37889cb8f6ac81c622f1be7e1d38bee89 100644 (file)
@@ -1,3 +1,7 @@
+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
index 09204e3c918ea4240160ca5d50ff3a222e8288cd..6fc113dbd93ccd3a546e832d9105ccfb78fe794f 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;
 }