mirror of
https://github.com/github/codeql.git
synced 2026-03-29 11:48:16 +02: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;
|
|
}
|