You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
480 B
29 lines
480 B
#include <iostream>
|
|
|
|
class Foo
|
|
{
|
|
public:
|
|
int Bar(int x, int y)
|
|
{
|
|
return x + y;
|
|
}
|
|
};
|
|
|
|
namespace { int Quux (void) { return 0; } }
|
|
|
|
struct Container { int MemberVar; };
|
|
|
|
int main(int argc, char *argv[]) {
|
|
if (argc > 1 && std::string(argv[1]) == "-x")
|
|
std::cin.get();
|
|
|
|
Foo fooo;
|
|
Foo *ptr_fooo = &fooo;
|
|
fooo.Bar(1, 2);
|
|
|
|
Container container;
|
|
Container *ptr_container = &container;
|
|
int q = Quux();
|
|
return container.MemberVar = 3; // Break here
|
|
}
|