Files
codeql/cpp/ql/test/library-tests/calls/calls2.cpp
2018-09-23 16:23:52 -07:00

21 lines
220 B
C++

#include "calls1.h"
void g() {
int x = 2;
int y = 4;
swap(&x,&y);
}
void negate(int& c) { c = -c; }
template<class Iter, class Fct> void compute(Iter b, Fct f)
{
f(b);
}
void f(int aa)
{
compute(aa, negate);
}