blob: d6c81706b8f541d2e6aa7a2ed99ed6488158d8f7 [file] [log] [blame]
// { dg-options "-std=gnu++20" }
// { dg-do compile { target c++20 } }
// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-gthreads "" }
#include <thread>
void
test_pfm()
{
// PR libstdc++/100612
struct X
{
void run(std::stop_token) { }
void run_arg(int) { }
void run_args(std::stop_token, int, int) { }
};
X x;
std::jthread{&X::run, &x};
std::jthread{&X::run_arg, &x, 1};
std::jthread{&X::run_args, &x, 1, 1};
}