All pastes #717925 Raw Edit

Miscellany

public text v1 · immutable
#717925 ·published 2007-09-27 23:46 UTC
rendered paste body
#include <iostream>

class test2
{
public:
 test2() {a=2;}
 ~test2() {a=0;}
 int a;
};

test2 foo()
{
}

int main(int argc, char** argv)
{
	test2 t;
	test2 c;
	t = foo();
	std::cerr << foo().a << std::endl;
	return 0;
}