aboutsummaryrefslogtreecommitdiff
blob: 92ffc8ef5979e88aebca3bcb1da01084a913b256 (plain)
1
2
3
4
5
6
7
8
9
10
11
enum {A = 12};

static void f(void)
{
	enum {A = A + 1, B};
	char s[1 - 2 * (B != 14)];
}

/*
 * check-name: enumeration constants' scope [6.2.1p7]
 */