Home | History | Annotate | Line # | Download | only in lint1
msg_014.c revision 1.3
      1 /*	$NetBSD: msg_014.c,v 1.3 2021/08/26 19:23:25 rillig Exp $	*/
      2 # 3 "msg_014.c"
      3 
      4 // Test for message: compiler takes alignment of function [14]
      5 
      6 typedef void function(void);
      7 
      8 /* expect+1: error: cannot take size/alignment of function [144] */
      9 unsigned long alignof_function = __alignof__(function);
     10 
     11 TODO: "Add example code that triggers the above message." /* expect: 249 */
     12 TODO: "Add example code that almost triggers the above message."
     13