diff options
| author | Graydon Hoare <[email protected]> | 2011-03-28 18:06:43 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-03-28 18:07:29 -0700 |
| commit | 268b2140dce6af920fcf09f22448c028cc6f12ed (patch) | |
| tree | 36b18ae623366f6501410b4d7342f9f47c708b9e /src/test | |
| parent | Move all allocas to dedicated basic block at top of function, to keep frames ... (diff) | |
| download | rust-268b2140dce6af920fcf09f22448c028cc6f12ed.tar.xz rust-268b2140dce6af920fcf09f22448c028cc6f12ed.zip | |
Add long-while.rs to check on frame growth.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass/long-while.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/run-pass/long-while.rs b/src/test/run-pass/long-while.rs new file mode 100644 index 00000000..27a23203 --- /dev/null +++ b/src/test/run-pass/long-while.rs @@ -0,0 +1,8 @@ +fn main() { + let int i = 0; + while (i < 1000000) { + i += 1; + auto x = 3; + } +} + |