< prev index next >

test/jdk/java/foreign/TestHFA.java

Print this page

  8  * published by the Free Software Foundation.
  9  *
 10  * This code is distributed in the hope that it will be useful, but WITHOUT
 11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 13  * version 2 for more details (a copy is included in the LICENSE file that
 14  * accompanied this code).
 15  *
 16  * You should have received a copy of the GNU General Public License version
 17  * 2 along with this work; if not, write to the Free Software Foundation,
 18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 19  *
 20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 21  * or visit www.oracle.com if you need additional information or have any
 22  * questions.
 23  */
 24 
 25 /*
 26  * @test
 27  * @summary Test passing of Homogeneous Float Aggregates.
 28  * @enablePreview
 29  * @requires jdk.foreign.linker != "UNSUPPORTED"
 30  *
 31  * @run testng/othervm --enable-native-access=ALL-UNNAMED TestHFA
 32  */
 33 
 34 import java.lang.foreign.*;
 35 import java.lang.invoke.MethodHandle;
 36 import java.lang.invoke.MethodHandles;
 37 import java.lang.invoke.MethodType;
 38 import org.testng.annotations.Test;
 39 
 40 import static java.lang.foreign.ValueLayout.*;
 41 
 42 public class TestHFA {
 43 
 44     static {
 45         System.loadLibrary("TestHFA");
 46     }
 47 
 48     final static Linker abi = Linker.nativeLinker();
 49     final static SymbolLookup lookup = SymbolLookup.loaderLookup();

  8  * published by the Free Software Foundation.
  9  *
 10  * This code is distributed in the hope that it will be useful, but WITHOUT
 11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 13  * version 2 for more details (a copy is included in the LICENSE file that
 14  * accompanied this code).
 15  *
 16  * You should have received a copy of the GNU General Public License version
 17  * 2 along with this work; if not, write to the Free Software Foundation,
 18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 19  *
 20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 21  * or visit www.oracle.com if you need additional information or have any
 22  * questions.
 23  */
 24 
 25 /*
 26  * @test
 27  * @summary Test passing of Homogeneous Float Aggregates.


 28  *
 29  * @run testng/othervm --enable-native-access=ALL-UNNAMED TestHFA
 30  */
 31 
 32 import java.lang.foreign.*;
 33 import java.lang.invoke.MethodHandle;
 34 import java.lang.invoke.MethodHandles;
 35 import java.lang.invoke.MethodType;
 36 import org.testng.annotations.Test;
 37 
 38 import static java.lang.foreign.ValueLayout.*;
 39 
 40 public class TestHFA {
 41 
 42     static {
 43         System.loadLibrary("TestHFA");
 44     }
 45 
 46     final static Linker abi = Linker.nativeLinker();
 47     final static SymbolLookup lookup = SymbolLookup.loaderLookup();
< prev index next >