mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
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.
13 lines
108 B
C++
13 lines
108 B
C++
|
|
const int c = 1;
|
|
|
|
namespace namespace_a
|
|
{
|
|
const int c = 1;
|
|
}
|
|
|
|
namespace namespace_b
|
|
{
|
|
const int c = 1;
|
|
}
|