diff options
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass/chan-poweroftwo.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/run-pass/chan-poweroftwo.rs b/src/test/run-pass/chan-poweroftwo.rs index f3a4b9b5..da9a62cc 100644 --- a/src/test/run-pass/chan-poweroftwo.rs +++ b/src/test/run-pass/chan-poweroftwo.rs @@ -38,9 +38,19 @@ impure fn test_grow() { } } +// Don't allow the buffer to shrink below it's original size +impure fn test_shrink() { + let port[i8] myport = port(); + auto mychan = chan(myport); + + mychan <| 0i8; + auto x <- myport; +} + impure fn main() { test_init(); test_grow(); + test_shrink(); } // Local Variables: |