URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 307 |
Rev 384 |
/* Based on a test case contributed by Nicola Pero. */
|
/* Based on a test case contributed by Nicola Pero. */
|
|
|
#import "../../objc-obj-c++-shared/next-mapping.h"
|
#import "../../objc-obj-c++-shared/next-mapping.h"
|
#include <string.h>
|
#include <string.h>
|
#include <stdlib.h>
|
#include <stdlib.h>
|
|
|
#ifndef __NEXT_RUNTIME__
|
#ifndef __NEXT_RUNTIME__
|
#include <objc/NXConstStr.h>
|
#include <objc/NXConstStr.h>
|
#endif
|
#endif
|
|
|
int main(int argc, void **args)
|
int main(int argc, void **args)
|
{
|
{
|
if (strcmp ([@"this is a string" cString], "this is a string"))
|
if (strcmp ([@"this is a string" cString], "this is a string"))
|
abort ();
|
abort ();
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.