mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
21 lines
220 B
C++
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);
|
|
}
|
|
|