diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2018-07-23 21:21:22 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2018-07-23 21:21:22 +0000 |
| commit | afe48f9d68e446829bed6ce72b319c915873809a (patch) | |
| tree | cf4d1852819f96f709701e9e7c9b6088d77d74c5 /clang/test/CXX/special/class.ctor/p5-0x.cpp | |
| parent | f9f50f634d4d6cae8d844b5a7b764e1159dce8e4 (diff) | |
| download | bcm5719-llvm-afe48f9d68e446829bed6ce72b319c915873809a.tar.gz bcm5719-llvm-afe48f9d68e446829bed6ce72b319c915873809a.zip | |
Fold -Wreturn-stack-address into general initialization lifetime
checking.
llvm-svn: 337743
Diffstat (limited to 'clang/test/CXX/special/class.ctor/p5-0x.cpp')
| -rw-r--r-- | clang/test/CXX/special/class.ctor/p5-0x.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CXX/special/class.ctor/p5-0x.cpp b/clang/test/CXX/special/class.ctor/p5-0x.cpp index 5558313ce78..061a3d1f073 100644 --- a/clang/test/CXX/special/class.ctor/p5-0x.cpp +++ b/clang/test/CXX/special/class.ctor/p5-0x.cpp @@ -47,7 +47,7 @@ class NotDeleted2c { int &&a = static_cast<int&&>(n); }; NotDeleted2c nd2c; // Note: this one does not have a deleted default constructor even though the // implicit default constructor is ill-formed! -class NotDeleted2d { int &&a = 0; }; // expected-error {{reference member 'a' binds to a temporary object}} expected-note {{here}} +class NotDeleted2d { int &&a = 0; }; // expected-error {{reference member 'a' binds to a temporary object}} expected-note {{default member init}} NotDeleted2d nd2d; // expected-note {{first required here}} // - any non-variant non-static data member of const qualified type (or array |

