< prev index next >

test/jdk/com/sun/tools/jextract/testStruct/LibStructTest.java

Print this page

        

@@ -27,28 +27,28 @@
 import java.foreign.Scope;
 import java.foreign.memory.LayoutType;
 import java.foreign.memory.Pointer;
 import java.lang.invoke.MethodHandles;
 import org.testng.annotations.Test;
-import test.jextract.struct.struct;
+import test.jextract.struct.struct_h;
 
 import static org.testng.Assert.assertEquals;
 import static org.testng.Assert.fail;
-import static test.jextract.struct.struct.*;
+import static test.jextract.struct.struct_h.*;
 
 /*
  * @test
  * @library ..
  * @run driver JtregJextract -t test.jextract.struct -- struct.h
  * @run testng LibStructTest
  */
 public class LibStructTest {
-    static final struct libStruct;
+    static final struct_h libStruct;
 
     static {
         Library lib = Libraries.loadLibrary(MethodHandles.lookup(), "Struct");
-        libStruct = Libraries.bind(struct.class, lib);
+        libStruct = Libraries.bind(struct_h.class, lib);
     }
 
     @Test
     public void testDerefUndefined() {
         Pointer<UndefinedStruct> ptr = libStruct.allocateUndefinedStruct();
< prev index next >