New test cases.
From-SVN: r25422
This commit is contained in:
parent
b262d64c12
commit
5e8ad514bc
11
gcc/testsuite/g++.old-deja/g++.ns/alias7.C
Normal file
11
gcc/testsuite/g++.old-deja/g++.ns/alias7.C
Normal file
@ -0,0 +1,11 @@
|
||||
//Build don't link:
|
||||
namespace A{
|
||||
namespace B{int i;}
|
||||
using namespace B;
|
||||
}
|
||||
|
||||
namespace C=A;
|
||||
|
||||
void f(){
|
||||
C::i = 1;
|
||||
}
|
13
gcc/testsuite/g++.old-deja/g++.ns/ns17.C
Normal file
13
gcc/testsuite/g++.old-deja/g++.ns/ns17.C
Normal file
@ -0,0 +1,13 @@
|
||||
//Build don't link:
|
||||
namespace foo
|
||||
{
|
||||
class c
|
||||
{
|
||||
};
|
||||
};
|
||||
|
||||
int
|
||||
foo::c:fn () // ERROR - syntax error
|
||||
{
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user