Cross Reference: d_c99_anon_struct.c
xref: /src/tests/usr.bin/xlint/lint1/d_c99_anon_struct.c
  • Home
  • History
  • AnnotateAnnotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/tests/usr.bin/xlint/lint1/
d_c99_anon_struct.c revision 1.3
11.3Srillig/*	$NetBSD: d_c99_anon_struct.c,v 1.3 2021/01/31 14:39:31 rillig Exp $	*/
21.3Srillig# 3 "d_c99_anon_struct.c"
31.3Srillig
41.1Schristos/* Anonymous struct test */
51.1Schristos
61.1Schristostypedef int type;
71.1Schristos
81.1Schristosstruct point {
91.1Schristos	int x;
101.1Schristos	int y;
111.1Schristos};
121.1Schristos
131.1Schristosstruct bar {
141.1Schristos	struct {
151.1Schristos		struct point top_left;
161.1Schristos		struct point bottom_right;
171.1Schristos	};
181.1Schristos	type z;
191.1Schristos};
201.1Schristos
211.1Schristos
221.1Schristosint
231.1Schristosmain(void)
241.1Schristos{
251.1Schristos	struct bar b;
261.1Schristos	b.top_left.x = 1;
271.1Schristos	return 0;
281.1Schristos}
29

Indexes created Mon Nov 10 17:20:41 GMT 2025