URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
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;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.