main.cpp 295 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
#include <pls/internal/base/thread.h>
#include <pls/internal/base/prohibit_new.h>

using namespace pls::internal::base;

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();
}