diff --git a/gcc/testsuite/g++.old-deja/g++.other/access1.C b/gcc/testsuite/g++.old-deja/g++.other/access1.C new file mode 100644 index 00000000000..43aff60a161 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/access1.C @@ -0,0 +1,14 @@ +// Build don't link: + +class X{ + unsigned int i; + public: + void f(); +}; + +void X::f() +{ + union { + int foo[sizeof (i)]; + }; +}