Chris Lattner | 696bcf3 | 2002-08-19 21:48:09 +0000 | [diff] [blame^] | 1 | /* 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. */ | ||||
3 | struct list { | ||||
4 | int x; | ||||
5 | struct list *Next; | ||||
6 | }; | ||||
7 | |||||
8 | static struct list B; /* Forward declare static */ | ||||
9 | static struct list A = { 7, &B }; | ||||
10 | static struct list B = { 8, &A }; | ||||
11 | |||||
12 | extern struct list D; /* forward declare normal var */ | ||||
13 | |||||
14 | struct list C = { 7, &D }; | ||||
15 | struct list D = { 8, &C }; | ||||
16 |