1 /*
   2  * @test /nodynamiccopyright/
   3  * @summary Value types do not support == or !=
   4  * @modules jdk.incubator.mvt
   5  * @compile/fail/ref=CheckEquals.out --should-stop:ifError=PARSE -XDrawDiagnostics -Werror  -Xlint:values CheckEquals.java
   6  */
   7 @jdk.incubator.mvt.ValueCapableClass
   8 final class CheckEquals {
   9     boolean foo(CheckEquals a, CheckEquals b) {
  10         return (a == b) || (a != b);
  11     }
  12 }