tableswitch index problem solved, jump to wrong instruction of inlined functions...
[cacao.git] / tests / InlineExTest.java
diff --git a/tests/InlineExTest.java b/tests/InlineExTest.java
new file mode 100644 (file)
index 0000000..46fc543
--- /dev/null
@@ -0,0 +1,20 @@
+public class InlineExTest {
+       public static void internal() throws Exception {
+               try {
+                       throw new Exception("*");
+               } catch (Exception e) {
+                       throw new Exception("*"+e.getMessage());
+               }
+       }
+
+       public static void main(String args[]) {
+               try {
+                       internal();
+                       System.out.println("ERROR EXCEPTION EXPECTED");
+               } catch (Exception e) {
+                       System.out.println(e);
+                       System.exit(0);
+               }
+               System.out.println("SHOULD NOT BE REACHED");
+       }
+}