mirror of
https://github.com/github/codeql.git
synced 2026-05-05 21:55:19 +02:00
QL code and tests for C#/C++/JavaScript.
This commit is contained in:
16
cpp/ql/test/library-tests/namespaces/same_name/same_name.cpp
Normal file
16
cpp/ql/test/library-tests/namespaces/same_name/same_name.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
const int c = 1;
|
||||
|
||||
namespace namespace_a
|
||||
{
|
||||
const int c = 1;
|
||||
}
|
||||
|
||||
namespace namespace_b
|
||||
{
|
||||
//const int c = 1;
|
||||
//
|
||||
// this example is causing a DBCheck failure along the lines of:
|
||||
//
|
||||
// [INVALID_KEY] Relation namespacembrs((@namespace parentid, unique @namespacembr memberid)): Value 132 of key field memberid occurs in several tuples. Two such tuples are: (134,132) and (144,132)
|
||||
}
|
||||
Reference in New Issue
Block a user