1 // RUN: %clang_cc1 -emit-llvm -std=c++11 -triple x86_64-pc-linux-gnu -o- %s | FileCheck %s
4 // CHECK: [[X_GLOBAL:@[^ ]+]]{{.*}}thread_local global
6 // returned somewhere in TLS wrapper:
7 // CHECK: ret{{.*}}[[X_GLOBAL]]
9 template <typename T
> class unique_ptr
{
10 template <typename F
, typename S
> struct pair
{
16 constexpr unique_ptr() noexcept
: data() {}
17 explicit unique_ptr(T
*p
) noexcept
: data() {}
20 thread_local unique_ptr
<int> x
;
21 int main() { x
= unique_ptr
<int>(new int(5)); }