new
authorJason Merrill <jason@gcc.gnu.org>
Sun, 26 Apr 1998 15:21:49 +0000 (11:21 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sun, 26 Apr 1998 15:21:49 +0000 (11:21 -0400)
From-SVN: r19416

gcc/testsuite/g++.old-deja/g++.other/access1.C [new file with mode: 0644]

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 (file)
index 0000000..43aff60
--- /dev/null
@@ -0,0 +1,14 @@
+// Build don't link:
+
+class X{
+    unsigned int i;
+  public:
+    void f();
+};
+
+void X::f()
+{
+  union {
+    int foo[sizeof (i)];
+  };
+}