brintos

brintos / llvm-project-archived public Read only

0
0
Text · 230 B · 4b576bd Raw
22 lines · cpp
1int _ID = 0;2 3class Foo {4	public:5		Foo *next;6		int ID;7	8	Foo () : next(0), ID(++_ID) {}9};10 11int evalFoo(Foo& foo)12{13	return foo.ID; // Set break point at this line.14}15 16int main() {17	Foo f;18	f.next = &f;19	return evalFoo(f);20}21 22