You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
370 B
28 lines
370 B
// Merge success
|
|
namespace N1 {
|
|
int x;
|
|
}
|
|
|
|
// Merge multiple namespaces
|
|
namespace N2 {
|
|
extern int x;
|
|
}
|
|
namespace N2 {
|
|
extern float y;
|
|
}
|
|
|
|
// Merge namespace with conflict
|
|
namespace N3 {
|
|
extern float z;
|
|
}
|
|
|
|
namespace AliasWithSameName = N3;
|
|
|
|
namespace TestUnresolvedTypenameAndValueDecls {
|
|
template <class T> class Base {
|
|
public:
|
|
typedef T foo;
|
|
void bar();
|
|
};
|
|
}
|