diff options
author | Jason Merrill <jason@gcc.gnu.org> | 1998-10-15 15:44:51 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1998-10-15 15:44:51 -0400 |
commit | 409666f729b583b7b9bf382fdc3e284ab1b15e84 (patch) | |
tree | deed746f89dd99b4977cf0d9824b8a461787cf99 /gcc | |
parent | 0f8766b8af0eb7c2ea063d5442f2b73fc6ebb506 (diff) | |
download | gcc-409666f729b583b7b9bf382fdc3e284ab1b15e84.zip gcc-409666f729b583b7b9bf382fdc3e284ab1b15e84.tar.gz gcc-409666f729b583b7b9bf382fdc3e284ab1b15e84.tar.bz2 |
new
From-SVN: r23118
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.ns/main1.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/lookup3.C | 17 |
2 files changed, 17 insertions, 2 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.ns/main1.C b/gcc/testsuite/g++.old-deja/g++.ns/main1.C index a820e0a..0e5a07f 100644 --- a/gcc/testsuite/g++.old-deja/g++.ns/main1.C +++ b/gcc/testsuite/g++.old-deja/g++.ns/main1.C @@ -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 index 0000000..347be4e --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/lookup3.C @@ -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; + }) + ); +} |