libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / c23-parm-omit-3.c
blob6e484100f1e1cd953b9fdb57f6d4350cd86856e3
1 /* Test omitted parameter names in C23. Execution test. */
2 /* { dg-do run } */
3 /* { dg-options "-std=c23 -pedantic-errors" } */
5 extern void abort (void);
6 extern void exit (int);
8 void
9 f (int a, int [++a], int b)
11 /* Verify array size expression of unnamed parameter is processed as
12 expected. */
13 if (a != 2 || b != 3)
14 abort ();
17 int
18 main (void)
20 int t[2];
21 f (1, t, 3);
22 exit (0);