diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-05-16 19:52:25 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-05-16 19:52:25 +0000 |
| commit | 2414a6997ba8f372a7531bcafa311e42271c46cd (patch) | |
| tree | e0d999c9e79f443d5b02beb95e30f9c134ef0e1d /clang/test/CodeGenCXX/cxx11-thread-local.cpp | |
| parent | 39d40f7baf48e10010f421f8eda791c18090a3d8 (diff) | |
| download | bcm5719-llvm-2414a6997ba8f372a7531bcafa311e42271c46cd.tar.gz bcm5719-llvm-2414a6997ba8f372a7531bcafa311e42271c46cd.zip | |
Add testcase omitted from r181998.
llvm-svn: 182043
Diffstat (limited to 'clang/test/CodeGenCXX/cxx11-thread-local.cpp')
| -rw-r--r-- | clang/test/CodeGenCXX/cxx11-thread-local.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/cxx11-thread-local.cpp b/clang/test/CodeGenCXX/cxx11-thread-local.cpp index a7141d133bb..29877033621 100644 --- a/clang/test/CodeGenCXX/cxx11-thread-local.cpp +++ b/clang/test/CodeGenCXX/cxx11-thread-local.cpp @@ -128,6 +128,13 @@ void tls_dtor() { // CHECK: declare i32 @__cxa_thread_atexit(void (i8*)*, i8*, i8*) +// CHECK: define {{.*}} @_Z7PR15991v( +int PR15991() { + thread_local int n; + auto l = [] { return n; }; + return l(); +} + // CHECK: define {{.*}} @[[V_M_INIT:.*]]() // CHECK: load i8* bitcast (i64* @_ZGVN1VIiE1mE to i8*) // CHECK: %[[V_M_INITIALIZED:.*]] = icmp eq i8 %{{.*}}, 0 |

