diff options
Diffstat (limited to 'test/CXX/special/class.ctor/p5-0x.cpp')
-rw-r--r-- | test/CXX/special/class.ctor/p5-0x.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CXX/special/class.ctor/p5-0x.cpp b/test/CXX/special/class.ctor/p5-0x.cpp index 0f4add8..2360345 100644 --- a/test/CXX/special/class.ctor/p5-0x.cpp +++ b/test/CXX/special/class.ctor/p5-0x.cpp @@ -43,7 +43,7 @@ class NotDeleted2a { int &a = n; }; NotDeleted2a nd2a; class NotDeleted2b { int &a = error; }; // expected-error {{undeclared identifier}} NotDeleted2b nd2b; -class NotDeleted2c { int &&a = 0; }; +class NotDeleted2c { int &&a = 0; }; // expected-warning {{binding reference member 'a' to a temporary}} expected-note {{here}} NotDeleted2c nd2c; // - any non-variant non-static data member of const qualified type (or array |