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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.jni/] [pr11951.c] - Rev 830

Go to most recent revision | Compare with Previous | Blame | View Log

#include <stdio.h>
#include <pr11951.h>
 
JNIEXPORT void JNICALL
Java_pr11951_nmethod (JNIEnv *env, jclass myclass)
{
  jmethodID method;
  jobject r;
 
  method = (*env)->GetStaticMethodID (env, myclass, "dosomething",
				      "()Ljava/lang/Object;");
  r = (*env)->CallStaticObjectMethod (env, myclass, method);
  printf ("%d\n", r == NULL);
 
  (*env)->ExceptionClear (env);
}
 

Go to most recent revision | 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.