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

using namespace pls::internal::base;

int global = 0;

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