mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-27 15:28:53 -04:00

* UnresolvedUsingType * EmptyDecl * NamespaceAliasDecl * UsingDecl * UsingShadowDecl * UsingDirectiveDecl * UnresolvedUsingValueDecl * UnresolvedUsingTypenameDecl Refactor error handling in ImportTemplateArgumentLoc() method. Add a test for inline namespaces. llvm-svn: 318776
28 lines
370 B
C++
28 lines
370 B
C++
// 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();
|
|
};
|
|
}
|