Home | History | Annotate | Line # | Download | only in lint1
msg_014.c revision 1.4
      1  1.4  rillig /*	$NetBSD: msg_014.c,v 1.4 2022/04/01 23:16:32 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.4  rillig /* expect+1: error: cannot take size/alignment of function type 'function(void) returning void' [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