1 /* $NetBSD: msg_136.c,v 1.5 2023/07/07 19:45:22 rillig Exp $ */
2 # 3 "msg_136.c"
3
4 // Test for message: cannot do pointer arithmetic on operand of unknown size [136]
5
6 /* lint1-extra-flags: -X 351 */
7
8 /* expect+1: warning: struct 'incomplete' never defined [233] */
9 struct incomplete;
10
11 const struct incomplete *
example(const struct incomplete * ptr)12 example(const struct incomplete *ptr)
13 {
14 /* expect+1: error: cannot do pointer arithmetic on operand of unknown size [136] */
15 return ptr + 5;
16 }
17