r182043 - Add testcase omitted from r181998.
Richard Smith
richard-llvm at metafoo.co.uk
Thu May 16 12:52:25 PDT 2013
Author: rsmith
Date: Thu May 16 14:52:25 2013
New Revision: 182043
URL: http://llvm.org/viewvc/llvm-project?rev=182043&view=rev
Log:
Add testcase omitted from r181998.
Modified:
cfe/trunk/test/CodeGenCXX/cxx11-thread-local.cpp
Modified: cfe/trunk/test/CodeGenCXX/cxx11-thread-local.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/cxx11-thread-local.cpp?rev=182043&r1=182042&r2=182043&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/cxx11-thread-local.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/cxx11-thread-local.cpp Thu May 16 14:52:25 2013
@@ -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
More information about the cfe-commits
mailing list