aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/3-expressions/dyn_array_push_aggregate.zc
blob: 5dce054fd6d2719884e7340e808471df1ce5e167 (plain) (blame)
1
2
3
4
5
6
7
8
9
// expect error: push takes scalar or reference elements
include rt;
struct pt { int x; int y; }
fn main() {
	pt[?] a = rt.new(pt[?]);
	pt* p = rt.new(pt);
	push(a, p);
	return 0;
}