Files
codeql/cpp/ql/test/library-tests/namespaces/same_name/same_name.cpp
Matthew Gretton-Dann 6b28f33713 C++: Update test for fix to namespace members
Generation of IDs for namespace members has been fixed to generate
unique IDs for variables of the same name but in different namespaces.

Update the same_name test to validate this.
2019-09-23 16:04:59 +01:00

13 lines
108 B
C++

const int c = 1;
namespace namespace_a
{
const int c = 1;
}
namespace namespace_b
{
const int c = 1;
}