aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/5-declarations/fn_struct_param_rejected.zc
blob: d54f9996ea29aad8366e8481b2785b39338be9fa (plain) (blame)
1
2
3
4
5
6
7
8
// expect error: structs and arrays are passed by pointer
// spec 5.2.2
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
struct p { int x; }
int f(p v) { return 0; }
fn main() { return 0; }
// zc0: skip