msg_064.c revision 1.4
11.4Srillig/*	$NetBSD: msg_064.c,v 1.4 2023/08/02 18:51:25 rillig Exp $	*/
21.1Srillig# 3 "msg_064.c"
31.1Srillig
41.1Srillig// Test for message: ()-less function definition [64]
51.1Srillig
61.3Srilligtypedef int (function)(void);
71.3Srillig
81.3Srillig/*
91.3Srillig * Even though typedef_function has type function, this construction is not
101.3Srillig * allowed.  A function definition must always look like a function
111.4Srillig * definition, and that includes the parentheses for the parameters.
121.3Srillig */
131.3Srilligfunction typedef_function {
141.3Srillig	/* expect-1: error: ()-less function definition [64] */
151.3Srillig}
16