blob: 59220ac9b0d804c1dbd451535586b4b9b0cb0954 [file] [log] [blame]
Dan Gohman2d65d352009-08-25 15:38:29 +00001// RUN: %llvmgcc -S %s -o - | llvm-as -o /dev/null
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
3/* 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