blob: 54c828827294a94395857f282419a83982f59577 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* $NetBSD: msg_064.c,v 1.3 2021/07/12 18:00:36 rillig Exp $ */
# 3 "msg_064.c"
// Test for message: ()-less function definition [64]
typedef int (function)(void);
/*
* Even though typedef_function has type function, this construction is not
* allowed. A function definition must always look like a function
* definition, and that includes the parentheses for the arguments or
* parameters.
*/
function typedef_function {
/* expect-1: error: ()-less function definition [64] */
}
|