diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-12-22 02:22:31 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-12-22 02:22:31 +0000 |
commit | 6180245e9f63d2927b185ec251fb75aba30f1cac (patch) | |
tree | 05a08f4451c3522295717cda21d97effc9332ca9 /test/SemaCXX/enum-bitfield.cpp | |
parent | 0f75323264b93a318ac9007eb5ec5b233c444068 (diff) |
PR11614: Mark defaulted special constructors as constexpr if their implicit
definition would satisfy the constexpr requirements.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147128 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/enum-bitfield.cpp')
-rw-r--r-- | test/SemaCXX/enum-bitfield.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaCXX/enum-bitfield.cpp b/test/SemaCXX/enum-bitfield.cpp index 8cfc21f965..1a657408f8 100644 --- a/test/SemaCXX/enum-bitfield.cpp +++ b/test/SemaCXX/enum-bitfield.cpp @@ -2,7 +2,7 @@ enum E {}; -struct Z {}; // expected-note {{here}} +struct Z {}; typedef int Integer; struct X { @@ -14,5 +14,5 @@ struct X { struct Y { enum E : int(2); - enum E : Z(); // expected-error{{not an integer constant}} expected-note {{non-constexpr constructor 'Z'}} + enum E : Z(); // expected-error{{not an integer constant}} }; |