Commit b48a88cd by Andrew Pinski Committed by Andrew Pinski

gnu-runtime-3.m: Simplify.

2005-11-26  Andrew Pinski  <pinskia@physics.uc.edu>

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

From-SVN: r107556
parent 34051eb9
2005-11-26 Andrew Pinski <pinskia@physics.uc.edu> 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 PR middle-end/23669
* gcc.dg/tree-ssa/divide-1.c: New test. * gcc.dg/tree-ssa/divide-1.c: New test.
* gcc.dg/tree-ssa/divide-2.c: New test. * gcc.dg/tree-ssa/divide-2.c: New test.
/* Sanity check for GNU-runtime version of constant strings, /* Sanity check for GNU-runtime regardless of runtime used on target system. */
regardless of runtime used on target system. */
/* { dg-do run } */ /* { dg-do run } */
/* { dg-options "-fgnu-runtime" } */ /* { dg-options "-fgnu-runtime" } */
...@@ -8,23 +7,8 @@ ...@@ -8,23 +7,8 @@
#include <string.h> #include <string.h>
#include <stdlib.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) int main(int argc, void **args)
{ {
if (strcmp ([@"this is a string" cString], "this is a string")) [Object new];
abort ();
return 0; return 0;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment