Files
codeql/cpp/ql/test/library-tests/syntax-zoo/pmcallexpr.cpp
Jeroen Ketema 4faede0e2c C++: Silence some more bogus consistency errors in syntax zoo
These were due to several functions occurring that would have the same TRAP key.
By making the functions static or wrapping the defining class in an anonymous
namespace the TRAP keys will differ from each other.
2023-03-03 12:07:33 +01:00

13 lines
106 B
C++

namespace {
class C {
public:
void (C::*g)();
};
}
static void f() {
C *c, *d;
(c->*(d->g))();
;
}