OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [objc/] [execute/] [string3.m] - Diff between revs 149 and 154

Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
/* Based on a test case contributed by Nicola Pero.  */
/* Based on a test case contributed by Nicola Pero.  */
 
 
#include <string.h>
#include <string.h>
#include <stdlib.h>
#include <stdlib.h>
 
 
#ifdef __NEXT_RUNTIME__
#ifdef __NEXT_RUNTIME__
#include "next_mapping.h"
#include "next_mapping.h"
#else
#else
#include <objc/NXConstStr.h>
#include <objc/NXConstStr.h>
#endif
#endif
 
 
#define STRING "this is a string"
#define STRING "this is a string"
 
 
int main (int argc, void **args)
int main (int argc, void **args)
{
{
  if (strcmp ([@STRING cString], STRING))
  if (strcmp ([@STRING cString], STRING))
    abort ();
    abort ();
  return 0;
  return 0;
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.