#include <iostream> using namespace std; int a = 1; const char* str = "abc"; class Obj {}; int f(int lhs, int rhs) { Obj* obj = new Obj(); Obj obj2; int aa = a; delete obj; return aa + lhs + rhs; } int main() { int *b = new int(2); int c = f(a, *b); delete b; return 0; }