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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [objc/] [execute/] [string4.m] - Rev 12

Compare with Previous | Blame | View Log

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

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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