mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-10 19:27:22 +08:00
* g++.dg/lookup/scoped4.C: New test.
From-SVN: r60751
This commit is contained in:
parent
0ba7ab3e31
commit
35bce286a1
@ -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>
|
||||
|
||||
|
15
gcc/testsuite/g++.dg/lookup/scoped4.C
Normal file
15
gcc/testsuite/g++.dg/lookup/scoped4.C
Normal file
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user