blob: 59220ac9b0d804c1dbd451535586b4b9b0cb0954 [file] [log] [blame]
Dan Gohmanfea1dd02009-08-25 15:38:29 +00001// RUN: %llvmgcc -S %s -o - | llvm-as -o /dev/null
Tanya Lattnere9af5d12004-11-06 22:41:00 +00002
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