main.cpp 278 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
  // Try to use every feature, to trigger the prohibited use of new if found somewhere
10
  thread t1{[]() {}};
11
  t1.join();
12
}