From-SVN: r23118
This commit is contained in:
Jason Merrill 1998-10-15 15:44:51 -04:00
parent 0f8766b8af
commit 409666f729
2 changed files with 17 additions and 2 deletions

View 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 {

View File

@ -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;
})
);
}