Skip to content

Commit f88c3d7

Browse files
committed
testsuite: Fix local labels [PR122378]
r16-4540-g80af807e52e4f4 exposed a bug in two testcases where the declaration of local labels was wrongly commented out. That caused "duplicate label" errors. Uncommenting declarations fixes it. PR middle-end/122378 gcc/testsuite/ChangeLog: * c-c++-common/gomp/attrs-metadirective-2.c: Uncomment local label declaration. * c-c++-common/gomp/metadirective-2.c: Likewise.
1 parent 02797a4 commit f88c3d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gcc/testsuite/c-c++-common/gomp/attrs-metadirective-2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ main (void)
6262
when (device={arch("gcn")}: teams num_teams(256)),
6363
default (teams num_teams(4)))]]
6464
{
65-
//__label__ l1, l2;
65+
__label__ l1, l2;
6666

6767
if (x)
6868
goto l1;

gcc/testsuite/c-c++-common/gomp/metadirective-2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ main (void)
6161
when (device={arch("gcn")}: teams num_teams(256)) \
6262
default (teams num_teams(4))
6363
{
64-
//__label__ l1, l2;
64+
__label__ l1, l2;
6565

6666
if (x)
6767
goto l1;

0 commit comments

Comments
 (0)