llvm-for-llvmta/tools/clang/test/ASTMerge/namespace/Inputs/namespace1.cpp

28 lines
370 B
C++
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// 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();
};
}