blob: e5007af7254e46ccfe234e3cf77ba95fa3f51ece [file] [log] [blame]
Tanya Lattnere9af5d12004-11-06 22:41:00 +00001// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
2
Chris Lattner696bcf32002-08-19 21:48:09 +00003/* This testcase doesn't actually test a bug, it's just the result of me
4 * figuring out the syntax for forward declaring a static variable. */
5struct list {
6 int x;
7 struct list *Next;
8};
9
10static struct list B; /* Forward declare static */
11static struct list A = { 7, &B };
12static struct list B = { 8, &A };
13
14extern struct list D; /* forward declare normal var */
15
16struct list C = { 7, &D };
17struct list D = { 8, &C };
18