diff options
author | Nathanael Nerode <neroden@gcc.gnu.org> | 2003-01-03 12:52:34 +0000 |
---|---|---|
committer | Nathanael Nerode <neroden@gcc.gnu.org> | 2003-01-03 12:52:34 +0000 |
commit | ba7e8dc0481ef85858de9b585bc293442b70b777 (patch) | |
tree | 2f1361ce973e8da05cbd18540f726f94989c430b /gcc/testsuite | |
parent | b15da5b700bc219aa7ffda7a6ccebefa566528ec (diff) | |
download | gcc-ba7e8dc0481ef85858de9b585bc293442b70b777.zip gcc-ba7e8dc0481ef85858de9b585bc293442b70b777.tar.gz gcc-ba7e8dc0481ef85858de9b585bc293442b70b777.tar.bz2 |
* g++.dg/parse/namespace3.C: New test.
From-SVN: r60828
Diffstat (limited to 'gcc/testsuite')
-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 + |