Commit 75cf27d4 by Jason Merrill

update

From-SVN: r18228
parent 30394414
namespace Foo { // WARNING - namespaces mostly broken
namespace Foo {
bar() {
return 0;
}
}
using namespace Foo; // ERROR - using not implemented
using namespace Foo;
main() {
bar();
......
// excess errors test - XFAIL *-*-*
namespace Foo {
bar() {
return 0;
......
namespace { // WARNING - namespaces mostly broken
namespace {
int i = 10;
enum fish { one = 1, two = 2, red = 3, blue = 4 };
}
......
namespace N { // WARNING - namespaces mostly broken
namespace N {
int i;
};
using namespace N; // ERROR - using not implemented
using namespace N;
main() {
return i;
......
// Build don't link:
namespace i { // WARNING - namespaces mostly broken
namespace i {
}
namespace i {
}
namespace A { // WARNING - namespaces mostly broken
namespace A {
int i = 1;
}
int j = i; // ERROR - XFAIL *-*-*
int j = i; // ERROR -
// Build don't link:
namespace A { // WARNING - namespaces mostly broken
namespace A {
int i = 1;
}
......
// 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 -
}
// Build don't link:
namespace A { // WARNING - namespaces mostly broken
namespace A {
int i = 1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment