Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2f8029 commit e237507Copy full SHA for e237507
1 file changed
cpp/ql/test/query-tests/Likely Bugs/ReturnConstType/test.cpp
@@ -47,3 +47,6 @@ MYCHAR getAMYCHAR(); // FALSE POSITIVE
47
48
#define ID(T) T id_ (T x) {return x;}
49
ID(const char); // FALSE POSITIVE
50
+
51
+const float pi = 3.14159626f;
52
+const float &getPiRef() { return pi; } // GOOD
0 commit comments