mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
Adds test cases for initialisation of constants which aren't simple zeros. Example: int x = int();
13 lines
201 B
C++
13 lines
201 B
C++
|
|
int x = int();
|
|
float y = float();
|
|
double z = double();
|
|
|
|
/* This produces a getValueText() of 0 for R() in line 9, which is debatable. */
|
|
struct R {};
|
|
struct S {
|
|
S() : S(R()) { }
|
|
S(R) { }
|
|
};
|
|
S s;
|