We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7434702 + b76f66e commit e048207Copy full SHA for e048207
cpp/ql/test/duplication-tests/constants/constants.cpp
@@ -0,0 +1,12 @@
1
+
2
+int x = int();
3
+float y = float();
4
+double z = double();
5
6
+/* This produces a getValueText() of 0 for R() in line 9, which is debatable. */
7
+struct R {};
8
+struct S {
9
+ S() : S(R()) { }
10
+ S(R) { }
11
+};
12
+S s;
cpp/ql/test/duplication-tests/constants/expr.expected
@@ -0,0 +1,4 @@
+| constants.cpp:2:9:2:13 | 0 | int() |
+| constants.cpp:3:11:3:17 | 0.0 | float() |
+| constants.cpp:4:12:4:19 | 0.0 | double() |
+| constants.cpp:9:11:9:13 | 0 | 0 |
cpp/ql/test/duplication-tests/constants/expr.ql
+import cpp
+from Expr e
+select e, e.getValueText()
0 commit comments