Created
November 18, 2021 17:17
-
-
Save EAirPeter/db14b51afecb88294b30bd24b49b0dd7 to your computer and use it in GitHub Desktop.
Try it with clang
This file contains hidden or 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
#include <cstdio> | |
using namespace std; | |
void Foo(void) { | |
//puts("Foo Start"); | |
for (int i = 0; i >= 0; ++i) { | |
// Undefined behavior | |
} | |
puts("Foo End"); | |
} | |
void Bar(void) { | |
puts("Bar"); | |
} | |
int main() { | |
void (*volatile Invocable)(void) = Foo; | |
Invocable(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment