Skip to content

Instantly share code, notes, and snippets.

@grooverdan
Created April 29, 2022 01:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grooverdan/f6d767a04ba5991ea2bf3de821e02e7b to your computer and use it in GitHub Desktop.
Save grooverdan/f6d767a04ba5991ea2bf3de821e02e7b to your computer and use it in GitHub Desktop.
// 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