comparison graal/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/NegatedGuardsTest.java @ 16756:5148aab962af

Truffle-DSL: updated tests for the new generation layout.
author Christian Humer <christian.humer@gmail.com>
date Mon, 11 Aug 2014 15:53:05 +0200
parents 4eb23800c907
children d834f85ac8a1
comparison
equal deleted inserted replaced
16755:bd28da642eea 16756:5148aab962af
43 43
44 static boolean guard() { 44 static boolean guard() {
45 return true; 45 return true;
46 } 46 }
47 47
48 @Specialization(order = 1, guards = "!guard") 48 @Specialization(guards = "!guard")
49 int do1() { 49 int do1() {
50 throw new AssertionError(); 50 throw new AssertionError();
51 } 51 }
52 52
53 @Specialization(order = 2) 53 @Specialization()
54 int do2() { 54 int do2() {
55 return 42; // the generic answer to all questions 55 return 42; // the generic answer to all questions
56 } 56 }
57 } 57 }
58 } 58 }