blob: 847b354702ed8bd1affe4e96980d4df4af65fa40 [file] [log] [blame]
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// UNSUPPORTED: no-threads
// UNSUPPORTED: c++03
#include "make_test_thread.h"
void func() {}
struct T {
~T() {
// __thread_local_data is expected to be destroyed as it was created
// from the main(). Now trigger another access.
support::make_test_thread(func).join();
}
} t;
int main(int, char**) {
// Triggers construction of __thread_local_data.
support::make_test_thread(func).join();
return 0;
}