aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/3-expressions/ptr_index_must_be_number.zc
blob: 766e34892c0fc73b93fab87b792b536fe9458b44 (plain) (blame)
1
2
3
4
5
6
7
8
// expect error: type error
include rt;
typecheck on;
fn main() {
	int[2] a; int* p = a;
	rt.put_n(a[p]);
	return 0;
}