main.cpp 298 Bytes
Newer Older
1
#include <pls/internal/base/thread.h>
2
#include <pls/internal/helpers/prohibit_new.h>
3

4
using namespace pls::internal::base;
5 6 7 8 9 10

int global = 0;


int main() {
    // Try to use every feature, to trigger the prohibited use of new if found somewhere
11
    auto t1 = start_thread([] (){});
12 13
    t1.join();
}