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
/
parse-decl-after-label.c
blob
6e2a047eb2e3df0bfb0857218297443eb5128807
1
/* PR 29062
2
{ dg-do compile }
3
{ dg-options "-std=c17 -pedantic-errors -fsyntax-only" }
4
*/
5
6
int
f
(
int
x
)
7
{
8
if
(
x
>
1
)
9
{
10
goto
finish
;
11
}
12
return
x
;
13
14
finish
:
15
int
ret
=
1
;
/* { dg-error "a label can only be part of a statement and a declaration is not a statement" } */
16
return
ret
;
17
}