projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2004-06-05 Atsushi Enomoto <atsushi@ximian.com>
[mono.git]
/
mono
/
tests
/
bug-27420.cs
1
//
2
// bug-27420.cs: Using valuetypes in a loop leads to crash
3
//
4
5
using System;
6
7
struct A1 {
8
int i, j, k, l, m, n, o, p;
9
}
10
11
// Allocate a big structure
12
struct A2 {
13
A1 a, b, c, d, e, f;
14
15
public int g;
16
}
17
18
public class crash
19
{
20
static A2 get_a2 () {
21
return new A2 ();
22
}
23
24
static void Main() {
25
int i;
26
27
for (int j = 0; j < 100000; ++j) {
28
// Force the runtime to create a temporary valuetype on the stack
29
i = get_a2 ().g;
30
}
31
}
32
}