repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
c23-labels-1.c
blob
0d9b663c7eba3d2db2c34936f7cdff32d627b632
1
/* Tests for labels before declarations and at ends of compound statements. */
2
/* { dg-do run } */
3
/* { dg-options "-std=c23 -pedantic-errors" } */
4
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
;
14
d
:
15
}
16
17
int
main
(
void
)
18
{
19
if
(
2
!=
f
(
1
))
20
__builtin_abort
();
21
22
return
0
;
23
}