Created
April 11, 2018 15:26
-
-
Save qrealka/d18f1cb7e0967dd08160238afb7cc866 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
#include <cstdio> | |
#include <cstdlib> | |
bool g() noexcept(false) | |
{ | |
return rand() & 1; | |
} | |
void f() noexcept(noexcept(noexcept(g()))) | |
{ | |
throw 1; | |
} | |
int main() | |
{ | |
try{ | |
f(); | |
} catch(...) { | |
printf("catch\n"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment