libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / c23-labels-1.c
blob0d9b663c7eba3d2db2c34936f7cdff32d627b632
1 /* Tests for labels before declarations and at ends of compound statements. */
2 /* { dg-do run } */
3 /* { dg-options "-std=c23 -pedantic-errors" } */
5 int f(int x)
6 {
7 goto b;
8 a: int i = 2 * x;
9 aa: int u = 0; int v = 0;
10 goto c;
11 b: goto a;
12 { i *= 3; c: }
13 return i + u + v;
17 int main(void)
19 if (2 != f(1))
20 __builtin_abort();
22 return 0;