blob: 89c67bad663a9af9c298f0a4584809e2d5a5f13a [file] [log] [blame]
Eric Christopher3883e662011-07-26 22:17:02 +00001// RUN: %clang_cc1 -emit-llvm %s -o /dev/null
2
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