diff options
author | Neil Booth <neil@daikokuya.co.uk> | 2003-01-01 15:58:43 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2003-01-01 15:58:43 +0000 |
commit | 35bce286a1a465593d1dd688056059bcc6c80e99 (patch) | |
tree | 6cabb3ea345624aab3d17a66e6936459b5fe2821 | |
parent | 0ba7ab3e316b1e9ef9ddf37accabc03440e18765 (diff) | |
download | gcc-35bce286a1a465593d1dd688056059bcc6c80e99.zip gcc-35bce286a1a465593d1dd688056059bcc6c80e99.tar.gz gcc-35bce286a1a465593d1dd688056059bcc6c80e99.tar.bz2 |
* g++.dg/lookup/scoped4.C: New test.
From-SVN: r60751
-rw-r--r-- | gcc/testsuite/ChangeLog | 1 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/lookup/scoped4.C | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 2a9f3f7..9f7a09d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,6 +1,7 @@ 2003-01-01 Neil Booth <neil@daikokuya.co.uk> * g++.dg/parse/parse5.C: New test. + * g++.dg/lookup/scoped4.C: New test. 2003-01-01 Nathanael Nerode <neroden@gcc.gnu.org> diff --git a/gcc/testsuite/g++.dg/lookup/scoped4.C b/gcc/testsuite/g++.dg/lookup/scoped4.C new file mode 100644 index 0000000..2d9d90a --- /dev/null +++ b/gcc/testsuite/g++.dg/lookup/scoped4.C @@ -0,0 +1,15 @@ +/* PR c++/754 */ +/* { dg-do compile } */ + +namespace foo +{ + namespace bar + { + enum x {foo + }; + enum {ubit0 = 0x0001}; + // Used to get a parse error before "::" token. + int i=foo::bar::ubit0; + } +} + |