mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
15 lines
163 B
Plaintext
15 lines
163 B
Plaintext
module test;
|
|
struct Foo
|
|
{
|
|
float val;
|
|
int ival;
|
|
}
|
|
|
|
fn int main()
|
|
{
|
|
Foo bar;
|
|
bar.val /= 0f;
|
|
bar.ival /= 0; // #error: Division by zero not allowed
|
|
return 0;
|
|
}
|