-
-
Save grooverdan/f6d767a04ba5991ea2bf3de821e02e7b 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
// testing https://bugs.launchpad.net/ubuntu/+source/mariadb-10.6/+bug/1970634 | |
#include <stdexcept> | |
class aio_uring | |
{ | |
static constexpr char volatile * v= 0; | |
public: | |
aio_uring() | |
{ | |
if (*v == '\7') | |
{ | |
throw std::runtime_error("I just do not like 7"); | |
} | |
} | |
}; | |
aio_uring *create_linux_aio() | |
{ | |
try { | |
return new aio_uring(); | |
} catch (std::runtime_error& error) { | |
return nullptr; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment