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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.jni/] [pr11951.c] - Blame information for rev 781

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

Line No. Rev Author Line
1 765 jeremybenn
#include <stdio.h>
2
#include <pr11951.h>
3
 
4
JNIEXPORT void JNICALL
5
Java_pr11951_nmethod (JNIEnv *env, jclass myclass)
6
{
7
  jmethodID method;
8
  jobject r;
9
 
10
  method = (*env)->GetStaticMethodID (env, myclass, "dosomething",
11
                                      "()Ljava/lang/Object;");
12
  r = (*env)->CallStaticObjectMethod (env, myclass, method);
13
  printf ("%d\n", r == NULL);
14
 
15
  (*env)->ExceptionClear (env);
16
}

powered by: WebSVN 2.1.0

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