Files
codeql/cpp/ql/test/library-tests/preprocessor/dependent_defs/init.ql
2018-08-02 17:53:23 +01:00

10 lines
319 B
Plaintext

import cpp
// A variable may have more than one initializer because variables are merged
// when they have the same name and appear in the same source file, but their
// initializers are not merged.
from Variable v
select v, v.getInitializer().getExpr().getValue(),
count(v.getInitializer().getExpr().getValue())