aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-04-22 18:55:17 +0000
committerDuncan Sands <baldrick@free.fr>2009-04-22 18:55:17 +0000
commitd7b2f7ffcecee2809cf75d71374319dc0e73a71b (patch)
tree232fe17c86dd06f548eb3fe9567b53a7bc67b374
parente2a17468d1e47ef430933b7a91c5c1c4669d7d8d (diff)
Testcase for PR2958.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69818 91177308-0d34-0410-b5e6-96231b3b80d8
-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;