blob: 5e89419f782b388072252c67b26ea9d2db122f0f [file] [log] [blame]
Chris Lattner696bcf32002-08-19 21:48:09 +00001/* This testcase doesn't actually test a bug, it's just the result of me
2 * figuring out the syntax for forward declaring a static variable. */
3struct list {
4 int x;
5 struct list *Next;
6};
7
8static struct list B; /* Forward declare static */
9static struct list A = { 7, &B };
10static struct list B = { 8, &A };
11
12extern struct list D; /* forward declare normal var */
13
14struct list C = { 7, &D };
15struct list D = { 8, &C };
16