OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [objc/] [execute/] [string2.m] - Blame information for rev 307

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 307 jeremybenn
/* Based on a test case contributed by Nicola Pero.  */
2
 
3
#import "../../objc-obj-c++-shared/next-mapping.h"
4
#include <string.h>
5
#include <stdlib.h>
6
 
7
#ifndef __NEXT_RUNTIME__
8
#include <objc/NXConstStr.h>
9
#endif
10
 
11
int main(int argc, void **args)
12
{
13
  if (strcmp ([@"this " @"is " @"a " @"string" cString],
14
              "this " "is " "a " "string"))
15
    abort ();
16
  return 0;
17
}

powered by: WebSVN 2.1.0

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