libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / c23-unproto-3.c
blob6dc83dccddc8a4a23f26a87e36887698fe3f78d4
1 /* Test that declaring a function with () is the same as (void) in C23. Valid
2 use cases. */
3 /* { dg-do compile } */
4 /* { dg-options "-std=c23 -pedantic-errors -Wstrict-prototypes" } */
6 void f1 ();
7 void f1 (void);
9 void f2 (void);
10 void f2 ();
12 typedef void T1 ();
13 typedef void T1 (void);
15 void f3 ();
17 _Static_assert (_Generic (f3,
18 void (*) (int) : 1,
19 void (*) (void) : 2,
20 default : 3) == 2);