diff --git a/gcc/testsuite/g++.old-deja/g++.other/decl7.C b/gcc/testsuite/g++.old-deja/g++.other/decl7.C new file mode 100644 index 00000000000..7f547f6928d --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/decl7.C @@ -0,0 +1,13 @@ +// Build don't link: +// Origin: Mark Mitchell + +struct S +{ + void* sp; +}; + +void* f () +{ + struct S s = { &s.sp }; + return s.sp; +}