shithub: scc

ref: 7b7d12f633d61116de104d3920e0e24cdd7ad802
dir: /cc1/tests/test058.c/

View raw version
/* See LICENSE file for copyright and license details. */

/*
name: TEST058
description: Test of initialization mixing designators and sequence
error:
output:
V2	K	#NC
V4	K	#N9
V5	I	#N5
V6	V5	#N3
G8	V7	"arr	(
	#I0
	#I0
	#I3
	#I5
	#I0
	#I1
	#I0
	#I0
	#I6
	#I7
	#I0
	#I0
	#I0
	#I0
	#I0
	#I1
	#I2
	#I0
	#I0
	#I0
	#I0
	#I0
	#I0
	#I0
	#I7
	#I0
	#I0
	#I0
	#I0
	#I0
)
G10	I	F	"main
{
\
	h	G8	'P	#PA	+P	#P8	+P	@I	G8	'P	#P1E	+P	#PA	+P	#P8	+P	@I	!I
}
*/

int arr[][3][5] = {
	{
		{ 0, 0, 3, 5 },
		{ 1, [3] = 6, 7 },
	},
	{
		{ 1, 2 },
		{ [4] = 7, },
	},
};


int
main(void)
{
	return !(arr[0][1][4] == arr[1][1][4]);
}