2008-12-07 Zoltan Varga <vargaz@gmail.com>
[mono.git] / mono / tests / stack-overflow.cs
index 3996eedb0ed2a7cbef667bf994c792989c861e4d..d71f9d0719de9a0df9e8f67755a52d7f5481d7ab 100644 (file)
@@ -26,6 +26,10 @@ public class Tests {
        public static int foo () {
                A5 a5;
 
+               /* Prevent a5 from being optimized away */
+               a5 = new A5 ();
+               a5.a1.a1.a1.a1.a1 = 5;
+
                return foo () + 1;
        }