shithub: scc

ref: 5c1c29b22a2402dd6e830f9d1e1bf7f16738d0d1
dir: /cc1/tests/test015.c/

View raw version
/*
name: TEST015
description: Stress namespace mechanism
output:
test015.c:25: error: label 's' already defined
S8	s2
(
M9	I	s
)
S5	s1
(
M6	I	s
M10	S8	s1
)
S2	s
(
M11	S5	s
)
G12	S2	s2
F1
G13	F1	main
{
-
	j	L2
A3	S2	s
A4	I	s
	y	A4
	y	A3	M11	.S5	M6	.I	A3	M11	.S5	M10	.S8	M9	.I	+I
L2
????
*/

#line 1
typedef struct s s;

struct s {
	struct s1 {
		int s;
		struct s2 {
			int s;
		} s1;
	} s;
} s2;

int
main(void)
{
	goto s;
	struct s s;
		{
			int s;
			return s;
		}
	return s.s.s + s.s.s1.s;
	s:
		{
			s: return 0;
		}
}