1 /* $NetBSD: msg_146.c,v 1.4 2022/06/16 16:58:36 rillig Exp $ */ 2 # 3 "msg_146.c" 3 4 // Test for message: cannot take size/alignment of void [146] 5 6 unsigned long 7 example(void *ptr) 8 { 9 /* expect+1: error: cannot take size/alignment of void [146] */ 10 return sizeof(*ptr); 11 } 12