use of org.graalvm.compiler.truffle.test.nodes.NonConstantTestNode in project graal by oracle.
the class CompilerAssertsTest method compilationNonConstantTest.
@Test
public void compilationNonConstantTest() {
FrameDescriptor descriptor = new FrameDescriptor();
CompilationConstantTestNode result = new CompilationConstantTestNode(new NonConstantTestNode(5));
RootTestNode rootNode = new RootTestNode(descriptor, "compilationConstant", result);
try {
compileHelper("compilationConstant", rootNode, new Object[0]);
Assert.fail("Expected bailout exception because expression is not compilation constant");
} catch (BailoutException e) {
// Bailout exception expected.
}
}
Aggregations