< prev index next >

test/compiler/c1/Test7103261.java

Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke


  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 /**
  26  * @test
  27  * @bug 7103261
  28  * @summary crash with jittester on sparc
  29  *
  30  * @run main Test7103261
  31  */
  32 


  33 // exercise implicit null checking in the compiler for various field types
  34 public class Test7103261 {
  35     static Test7103261 null_value;
  36     static Test7103261 nonnull_value = new Test7103261();
  37     static Test7103261 nonnull_value2 = new Test7103261();
  38 
  39     long l;
  40     int i;
  41     float f;
  42     double d;
  43     byte b;
  44     char c;
  45     short s;
  46     boolean z;
  47     Object o;
  48 
  49     public static void main(String[] args) {
  50         constantStore();
  51         valueTest(false);
  52         valueTest(true);




  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 /**
  26  * @test
  27  * @bug 7103261
  28  * @summary crash with jittester on sparc
  29  *
  30  * @run main compiler.c1.Test7103261
  31  */
  32 
  33 package compiler.c1;
  34 
  35 // exercise implicit null checking in the compiler for various field types
  36 public class Test7103261 {
  37     static Test7103261 null_value;
  38     static Test7103261 nonnull_value = new Test7103261();
  39     static Test7103261 nonnull_value2 = new Test7103261();
  40 
  41     long l;
  42     int i;
  43     float f;
  44     double d;
  45     byte b;
  46     char c;
  47     short s;
  48     boolean z;
  49     Object o;
  50 
  51     public static void main(String[] args) {
  52         constantStore();
  53         valueTest(false);
  54         valueTest(true);


< prev index next >