1 /* Test that declaring a function with () is the same as (void) in C23.
3 /* { dg-do compile } */
4 /* { dg-options "-std=c23 -pedantic-errors" } */
6 void f1 (); /* { dg-message "previous declaration" } */
7 void f1 (int); /* { dg-error "conflicting types" } */
9 void f2 (); /* { dg-message "declared here" } */
14 f2 (1); /* { dg-error "too many arguments" } */