|
Last change
on this file since 2516 was 2, checked in by bird, 23 years ago |
|
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
|
File size:
386 bytes
|
| Line | |
|---|
| 1 | // Test for array field lookup.
|
|---|
| 2 |
|
|---|
| 3 | public class cxxtest
|
|---|
| 4 | {
|
|---|
| 5 | // A field for us to look up.
|
|---|
| 6 | public Object[] F = new Object[7];
|
|---|
| 7 |
|
|---|
| 8 | public native Object[] fetch ();
|
|---|
| 9 |
|
|---|
| 10 | public void doit ()
|
|---|
| 11 | {
|
|---|
| 12 | System.out.println (F == fetch ());
|
|---|
| 13 | }
|
|---|
| 14 |
|
|---|
| 15 | public static void main (String[] args)
|
|---|
| 16 | {
|
|---|
| 17 | cxxtest q = new cxxtest ();
|
|---|
| 18 | q.doit ();
|
|---|
| 19 | }
|
|---|
| 20 |
|
|---|
| 21 | static
|
|---|
| 22 | {
|
|---|
| 23 | System.loadLibrary ("cxxtest");
|
|---|
| 24 | }
|
|---|
| 25 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.