summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr69483.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr69483.c')
-rw-r--r--gcc/testsuite/gcc.dg/pr69483.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr69483.c b/gcc/testsuite/gcc.dg/pr69483.c
new file mode 100644
index 00000000000..2ab9dc345e7
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pr69483.c
@@ -0,0 +1,6 @@
+/* PR tree-optimization/69483 */
+/* { dg-do compile } */
+
+struct T { struct S *a; };
+struct S b; /* { dg-error "storage size of 'b' isn't known" } */
+struct T c = { &b };