xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_136.c (revision 7d62b00eb9ad855ffcd7da46b41e23feb5476fac)
1 /*	$NetBSD: msg_136.c,v 1.4 2022/06/16 16:58:36 rillig Exp $	*/
2 # 3 "msg_136.c"
3 
4 // Test for message: cannot do pointer arithmetic on operand of unknown size [136]
5 
6 /* expect+1: warning: struct 'incomplete' never defined [233] */
7 struct incomplete;
8 
9 const struct incomplete *
10 example(const struct incomplete *ptr)
11 {
12 	/* expect+1: error: cannot do pointer arithmetic on operand of unknown size [136] */
13 	return ptr + 5;
14 }
15