1/* 2 * @test /nodynamiccopyright/ 3 * @bug 8074148 4 * @summary Attr.visitBinary flags error at wrong position 5 * 6 * @compile/fail/ref=BinopVoidTest.out -XDrawDiagnostics BinopVoidTest.java 7 */ 8 9class BinopVoidTest { 10 void foo() {} 11 int x = 10 + foo(); 12 int y = foo() + 10; 13 int z = foo() + foo(); 14} 15