diff --git a/test/FrontendC/2009-04-22-UnknownSize.c b/test/FrontendC/2009-04-22-UnknownSize.c new file mode 100644 index 00000000000..2b90c91fe22 --- /dev/null +++ b/test/FrontendC/2009-04-22-UnknownSize.c @@ -0,0 +1,4 @@ +// RUN: not %llvmgcc -O1 %s -S |& grep {error: storage size} +// PR2958 +static struct foo s; +struct foo *p = &s;