ExcludeTest.java revision 11707:ad7af1afda7a
133965Sjdp/* 277298Sobrien * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 377298Sobrien * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 433965Sjdp * 533965Sjdp * This code is free software; you can redistribute it and/or modify it 633965Sjdp * under the terms of the GNU General Public License version 2 only, as 733965Sjdp * published by the Free Software Foundation. 833965Sjdp * 933965Sjdp * This code is distributed in the hope that it will be useful, but WITHOUT 1033965Sjdp * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1133965Sjdp * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1233965Sjdp * version 2 for more details (a copy is included in the LICENSE file that 1333965Sjdp * accompanied this code). 1433965Sjdp * 1533965Sjdp * You should have received a copy of the GNU General Public License version 1633965Sjdp * 2 along with this work; if not, write to the Free Software Foundation, 1733965Sjdp * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1860484Sobrien * 1960484Sobrien * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2060484Sobrien * or visit www.oracle.com if you need additional information or have any 2133965Sjdp * questions. 2233965Sjdp */ 2333965Sjdp 2433965Sjdp/* 2533965Sjdp * @test 2677298Sobrien * @bug 8137167 2733965Sjdp * @summary Tests directives to be able to exclude methods from compilation 2833965Sjdp * @modules java.base/jdk.internal.misc 2960484Sobrien * @library /testlibrary /test/lib / 3033965Sjdp * 3133965Sjdp * @build compiler.compilercontrol.directives.ExcludeTest 3277298Sobrien * compiler.compilercontrol.share.pool.sub.* 3333965Sjdp * compiler.compilercontrol.share.pool.subpack.* 3433965Sjdp * sun.hotspot.WhiteBox 3533965Sjdp * compiler.testlibrary.CompilerUtils 3633965Sjdp * compiler.compilercontrol.share.actions.* 3733965Sjdp * @run driver ClassFileInstaller sun.hotspot.WhiteBox 3833965Sjdp * sun.hotspot.WhiteBox$WhiteBoxPermission 3933965Sjdp * @run driver compiler.compilercontrol.directives.ExcludeTest 4033965Sjdp */ 4133965Sjdp 4233965Sjdppackage compiler.compilercontrol.directives; 4360484Sobrien 4433965Sjdpimport compiler.compilercontrol.share.SingleCommand; 4533965Sjdpimport compiler.compilercontrol.share.scenario.Command; 4633965Sjdpimport compiler.compilercontrol.share.scenario.Scenario; 4777298Sobrien 4833965Sjdppublic class ExcludeTest { 4933965Sjdp public static void main(String[] args) { 5033965Sjdp new SingleCommand(Command.EXCLUDE, Scenario.Type.DIRECTIVE).test(); 5133965Sjdp } 5233965Sjdp} 5333965Sjdp