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