aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2005-11-27 01:14:39 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2005-11-26 17:14:39 -0800
commitb48a88cdcb63e1fb4cf01528d87dafe5d3d9d0f3 (patch)
tree96e57a1c425e86ffadc7dba667f0cc43ac2ce841 /gcc
parent34051eb9a63b46c6f9c98e946dcd8f9039c29b82 (diff)
downloadgcc-b48a88cdcb63e1fb4cf01528d87dafe5d3d9d0f3.zip
gcc-b48a88cdcb63e1fb4cf01528d87dafe5d3d9d0f3.tar.gz
gcc-b48a88cdcb63e1fb4cf01528d87dafe5d3d9d0f3.tar.bz2
gnu-runtime-3.m: Simplify.
2005-11-26 Andrew Pinski <pinskia@physics.uc.edu> * objc.dg/gnu-runtime-3.m: Simplify. From-SVN: r107556
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/objc.dg/gnu-runtime-3.m20
2 files changed, 6 insertions, 18 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 2cbcd6d..1ca403c 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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.
diff --git a/gcc/testsuite/objc.dg/gnu-runtime-3.m b/gcc/testsuite/objc.dg/gnu-runtime-3.m
index 09204e3..6fc113d 100644
--- a/gcc/testsuite/objc.dg/gnu-runtime-3.m
+++ b/gcc/testsuite/objc.dg/gnu-runtime-3.m
@@ -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;
}