libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / c23-stdarg-3.c
blob10d97db5e6f050ec943eb6e2a3c43cc24302d724
1 /* Test C23 variadic functions with no named parameters. Compilation tests,
2 invalid code. */
3 /* { dg-do compile } */
4 /* { dg-options "-std=c23 -pedantic-errors" } */
6 int f (...); /* { dg-message "previous declaration" } */
7 int f (); /* { dg-error "conflicting types" } */
9 int f2 (...); /* { dg-message "previous declaration" } */
10 int f2 (int); /* { dg-error "conflicting types" } */
12 int g (); /* { dg-message "previous declaration" } */
13 int g (...); /* { dg-error "conflicting types" } */
15 int g2 (int); /* { dg-message "previous declaration" } */
16 int g2 (...); /* { dg-error "conflicting types" } */