diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/parse/namespace3.C | 12 |
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index daec05e..df72009 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2003-01-03 Nathanael Nerode <neroden@gcc.gnu.org> + + * g++.dg/parse/namespace3.C: New test. + 2003-01-02 Nathanael Nerode <neroden@gcc.gnu.org> * g++.dg/lookup/two-stage1.C: New test. diff --git a/gcc/testsuite/g++.dg/parse/namespace3.C b/gcc/testsuite/g++.dg/parse/namespace3.C new file mode 100644 index 0000000..5abbebf --- /dev/null +++ b/gcc/testsuite/g++.dg/parse/namespace3.C @@ -0,0 +1,12 @@ +/* PR c+/3816 */ +/* { dg-do compile } */ +namespace A {}; + +namespace OtherNamespace { + + typedef struct { + int member; + } A; // used to conflict with A namespace + +}; // end of namespace + |