< prev index next >

test/compiler/c1/Test7090976.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 7090976
  28  * @summary Eclipse/CDT causes a JVM crash while indexing C++ code
  29  *
  30  * @run main/othervm -XX:-BackgroundCompilation -XX:-UseOnStackReplacement Test7090976

  31  */
  32 


  33 public class Test7090976 {
  34 
  35     static interface I1 {
  36         public void m1();
  37     };
  38 
  39     static interface I2 {
  40         public void m2();
  41     };
  42 
  43     static interface I extends I1,I2 {
  44     }
  45 
  46     static class A implements I1 {
  47         int v = 0;
  48         int v2;
  49 
  50         public void m1() {
  51             v2 = v;
  52         }




  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 7090976
  28  * @summary Eclipse/CDT causes a JVM crash while indexing C++ code
  29  *
  30  * @run main/othervm -XX:-BackgroundCompilation -XX:-UseOnStackReplacement
  31  *      compiler.c1.Test7090976
  32  */
  33 
  34 package compiler.c1;
  35 
  36 public class Test7090976 {
  37 
  38     static interface I1 {
  39         public void m1();
  40     };
  41 
  42     static interface I2 {
  43         public void m2();
  44     };
  45 
  46     static interface I extends I1,I2 {
  47     }
  48 
  49     static class A implements I1 {
  50         int v = 0;
  51         int v2;
  52 
  53         public void m1() {
  54             v2 = v;
  55         }


< prev index next >