new
authorJason Merrill <jason@gcc.gnu.org>
Thu, 15 Oct 1998 19:44:51 +0000 (15:44 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 15 Oct 1998 19:44:51 +0000 (15:44 -0400)
From-SVN: r23118

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

index a820e0ad65a1c9d3836cc8e8af0f0685659282d6..0e5a07f6aae901321ef968415107be8ce11fb649 100644 (file)
@@ -4,8 +4,6 @@
 
 // submitted by Gerald Gutierrez <gutier@intergate.bc.ca>
 
-// excess errors test - XFAIL *-*-*
-
 namespace A { void main () { } }
 namespace B { void main () { } }
 namespace C {
diff --git a/gcc/testsuite/g++.old-deja/g++.other/lookup3.C b/gcc/testsuite/g++.old-deja/g++.other/lookup3.C
new file mode 100644 (file)
index 0000000..347be4e
--- /dev/null
@@ -0,0 +1,17 @@
+// Test to make sure that the use of __typeof__ in WIFEXITED works.
+
+int main ()
+{
+  int stat_loc = 0;
+  (__extension__
+   ({
+     union
+     {
+       __typeof__ (stat_loc) __in;
+       int             __i;
+     } __u;
+     __u.__in = (stat_loc);
+     __u.__i;
+   })
+   );
+}