Created
December 23, 2019 15:02
-
-
Save simonis/2a78c89076803cae4d4f3d4515c85d70 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void foo() {} | |
struct A { | |
A() { | |
foo(); | |
} | |
}; | |
struct B { | |
B() { | |
A a; | |
} | |
}; | |
void bar() { | |
foo(); | |
} | |
#define CALL_FOO foo() | |
void foobar() { | |
CALL_FOO; | |
} | |
int main(int argc, char **argv) { | |
B b; | |
bar(); | |
bar(); | |
foobar(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment