mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
* fix(stdlib): enforce BufferedChannel size > 0 and add regression test * chore(repo): ignore cmake/test artifacts * Formatting --------- Co-authored-by: Christoffer Lerno <christoffer.lerno@gmail.com>
9 lines
163 B
Plaintext
9 lines
163 B
Plaintext
import std::thread;
|
|
|
|
fn int main()
|
|
{
|
|
BufferedChannel{int} c;
|
|
c.init(mem, 0)!!; // #error: @require "size > 0" violated: 'channel size must be > 0'.
|
|
return 0;
|
|
}
|