From-SVN: r18228
This commit is contained in:
Jason Merrill 1998-02-24 19:55:32 -05:00
parent 30394414d9
commit 75cf27d4c9
9 changed files with 12 additions and 13 deletions

View File

@ -1,10 +1,10 @@
namespace Foo { // WARNING - namespaces mostly broken
namespace Foo {
bar() {
return 0;
}
}
using namespace Foo; // ERROR - using not implemented
using namespace Foo;
main() {
bar();

View File

@ -1,4 +1,3 @@
// excess errors test - XFAIL *-*-*
namespace Foo {
bar() {
return 0;

View File

@ -1,4 +1,4 @@
namespace { // WARNING - namespaces mostly broken
namespace {
int i = 10;
enum fish { one = 1, two = 2, red = 3, blue = 4 };
}

View File

@ -1,8 +1,8 @@
namespace N { // WARNING - namespaces mostly broken
namespace N {
int i;
};
using namespace N; // ERROR - using not implemented
using namespace N;
main() {
return i;

View File

@ -1,6 +1,6 @@
// Build don't link:
namespace i { // WARNING - namespaces mostly broken
namespace i {
}
namespace i {
}

View File

@ -1,5 +1,5 @@
namespace A { // WARNING - namespaces mostly broken
namespace A {
int i = 1;
}
int j = i; // ERROR - XFAIL *-*-*
int j = i; // ERROR -

View File

@ -1,6 +1,6 @@
// Build don't link:
namespace A { // WARNING - namespaces mostly broken
namespace A {
int i = 1;
}

View File

@ -1,9 +1,9 @@
// Build don't link:
namespace A { // WARNING - namespaces mostly broken
namespace A {
int i = 1;
}
namespace B {
int j = i; // ERROR - XFAIL *-*-*
int j = i; // ERROR -
}

View File

@ -1,6 +1,6 @@
// Build don't link:
namespace A { // WARNING - namespaces mostly broken
namespace A {
int i = 1;
}