Skip to content
Browse files

2008-12-07 Zoltan Varga <vargaz@gmail.com>

	* stack-overflow.cs (foo): Prevent the large local variable from being
	optimized away.

svn path=/trunk/mono/; revision=120958
  • Loading branch information...
1 parent 0145582 commit aff4472754b9f7662e9735f258f77edf8ed77e4c @vargaz vargaz committed Dec 7, 2008
Showing with 9 additions and 0 deletions.
  1. +5 −0 mono/tests/ChangeLog
  2. +4 −0 mono/tests/stack-overflow.cs
View
5 mono/tests/ChangeLog
@@ -1,3 +1,8 @@
+2008-12-07 Zoltan Varga <vargaz@gmail.com>
+
+ * stack-overflow.cs (foo): Prevent the large local variable from being
+ optimized away.
+
2008-12-03 Mark Probst <mark.probst@gmail.com>
* generic-typedef.2.cs: New test for ldtoken of open generic
View
4 mono/tests/stack-overflow.cs
@@ -26,6 +26,10 @@ struct A5 {
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;
}

0 comments on commit aff4472

Please sign in to comment.
Something went wrong with that request. Please try again.