aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c11-labels-1.c
blob: 6350403bf3880d03eb70bf41d9af0dbde7cd978a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* Tests for labels before declarations and at ends of compound statements.  */
/* { dg-do compile } */
/* { dg-options "-std=c11" } */

int f(int x) 
{ 
	goto b;
	a: int i = 2 * x;
           goto c;
	b: goto a;
	{ i *= 3; c: }
	return i;
        d:
}