Author: ericwf
Date: Sun Jun 26 19:38:28 2016
New Revision: 273836

URL: http://llvm.org/viewvc/llvm-project?rev=273836&view=rev
Log:
Fix C++03 failure in enable_shared_from_this test

Modified:
    
libcxx/trunk/test/std/utilities/memory/util.smartptr/util.smartptr.enab/enable_shared_from_this.pass.cpp

Modified: 
libcxx/trunk/test/std/utilities/memory/util.smartptr/util.smartptr.enab/enable_shared_from_this.pass.cpp
URL: 
http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/memory/util.smartptr/util.smartptr.enab/enable_shared_from_this.pass.cpp?rev=273836&r1=273835&r2=273836&view=diff
==============================================================================
--- 
libcxx/trunk/test/std/utilities/memory/util.smartptr/util.smartptr.enab/enable_shared_from_this.pass.cpp
 (original)
+++ 
libcxx/trunk/test/std/utilities/memory/util.smartptr/util.smartptr.enab/enable_shared_from_this.pass.cpp
 Sun Jun 26 19:38:28 2016
@@ -56,9 +56,10 @@ int main()
     std::shared_ptr<T const> t2(std::make_shared<T>());
     }
     { // https://llvm.org/bugs/show_bug.cgi?id=27115
+    int x = 42;
     std::shared_ptr<Bar> t1(new Bar(42));
     assert(t1->shared_from_this() == t1);
-    std::shared_ptr<Bar> t2(std::make_shared<Bar>(42));
+    std::shared_ptr<Bar> t2(std::make_shared<Bar>(x));
     assert(t2->shared_from_this() == t2);
     }
     {


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to