aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/FrontendC/2009-04-22-UnknownSize.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/FrontendC/2009-04-22-UnknownSize.c b/test/FrontendC/2009-04-22-UnknownSize.c
new file mode 100644
index 0000000000..2b90c91fe2
--- /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;