aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/5-declarations/enhance_wrong_inputs.zc
blob: 2ec23e01017f1f588a2c2d208b0493cf8aee389d (plain) (blame)
1
2
3
4
5
6
7
// expect error: add2: wrong number of inputs
// spec 5.10
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
enhance add2(a, b) vm { + };
fn main() { pn(add2(1)); return 0; }
// zc0: skip