1 /* $NetBSD: msg_146.c,v 1.5 2023/07/07 19:45:22 rillig Exp $ */ 2 # 3 "msg_146.c" 3 4 // Test for message: cannot take size/alignment of void [146] 5 6 /* lint1-extra-flags: -X 351 */ 7 8 unsigned long 9 example(void *ptr) 10 { 11 /* expect+1: error: cannot take size/alignment of void [146] */ 12 return sizeof(*ptr); 13 } 14