summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/cxx0x-cursory-default-delete.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2011-09-30 00:45:47 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2011-09-30 00:45:47 +0000
commit7cd25b283625f00e4770d6910cfc8c8fce26d27b (patch)
tree7af06242621958445ff06d0d209deebae792a2bb /clang/test/SemaCXX/cxx0x-cursory-default-delete.cpp
parentc44e20cec085817890434d84d5e9552fa0777245 (diff)
downloadbcm5719-llvm-7cd25b283625f00e4770d6910cfc8c8fce26d27b.tar.gz
bcm5719-llvm-7cd25b283625f00e4770d6910cfc8c8fce26d27b.zip
constexpr functions are implicitly const. More tests to follow.
llvm-svn: 140831
Diffstat (limited to 'clang/test/SemaCXX/cxx0x-cursory-default-delete.cpp')
-rw-r--r--clang/test/SemaCXX/cxx0x-cursory-default-delete.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/cxx0x-cursory-default-delete.cpp b/clang/test/SemaCXX/cxx0x-cursory-default-delete.cpp
index 61aee0e4563..9d4443c8878 100644
--- a/clang/test/SemaCXX/cxx0x-cursory-default-delete.cpp
+++ b/clang/test/SemaCXX/cxx0x-cursory-default-delete.cpp
@@ -35,7 +35,7 @@ struct bad_decls {
bad_decls(volatile bad_decls&) = default; // expected-error {{may not be volatile}}
bad_decls&& operator = (bad_decls) = default; // expected-error 2{{lvalue reference}}
bad_decls& operator = (volatile bad_decls&) = default; // expected-error {{may not be volatile}}
- bad_decls& operator = (const bad_decls&) const = default; // expected-error {{may not have 'const' or 'volatile' qualifiers}}
+ bad_decls& operator = (const bad_decls&) const = default; // expected-error {{may not have 'const', 'constexpr' or 'volatile' qualifiers}}
};
struct A {}; struct B {};
OpenPOWER on IntegriCloud