2008-03-26 Zoltan Varga <vargaz@gmail.com>
[mono.git] / mono / tests / async-exceptions.cs
index adbbe5b4a97dd9872d7061a56e988eebb7f2340f..8249ca098993a51f47038157bc5c0961ea6733f5 100644 (file)
@@ -7,16 +7,31 @@ using System;
 public class Tests {
 
        // Async exceptions will be raised while executing this method
+       // On amd64, this doesn't have a frame pointer
        static void foo () {
                for (int i = 0; i < 10; ++i)
                        ;
        }
 
+       // This does have a frame pointer
+       static void bar () {
+               for (int i = 0; i < 10; ++i)
+                       ;
+
+               try {
+               } catch {
+               }
+       }
+
        public static int Main (String[] args) {
                try {
                        foo ();
                } catch (NullReferenceException ex) {
-                       return 0;
+               }
+
+               try {
+                       bar ();
+               } catch (NullReferenceException ex) {
                }
 
                return 0;