diff options
| author | Eric Fiselier <eric@efcs.ca> | 2016-06-27 00:38:28 +0000 | 
|---|---|---|
| committer | Eric Fiselier <eric@efcs.ca> | 2016-06-27 00:38:28 +0000 | 
| commit | 06e9017d7b199fc91840ecdf21b67a7006c5004f (patch) | |
| tree | f39fcc76d5b14bda11f76d05a9538df374681c5b /libcxx | |
| parent | 39005d30196c67e1b4e4e3cdbc9f43c8bcd24f91 (diff) | |
| download | bcm5719-llvm-06e9017d7b199fc91840ecdf21b67a7006c5004f.tar.gz bcm5719-llvm-06e9017d7b199fc91840ecdf21b67a7006c5004f.zip  | |
Fix C++03 failure in enable_shared_from_this test
llvm-svn: 273836
Diffstat (limited to 'libcxx')
| -rw-r--r-- | libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.enab/enable_shared_from_this.pass.cpp | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.enab/enable_shared_from_this.pass.cpp b/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.enab/enable_shared_from_this.pass.cpp index baee66e123e..b9f8ee0746c 100644 --- a/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.enab/enable_shared_from_this.pass.cpp +++ b/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.enab/enable_shared_from_this.pass.cpp @@ -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);      }      {  | 

