diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-09-27 20:24:36 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-09-27 20:24:36 +0000 |
commit | 61422f96653f1ceb01b0dd6229a8b06ac947e2f3 (patch) | |
tree | 53dda1ae9fb0b4b7b996faaaa660c8038474f7b2 /clang/test/CXX/expr/expr.const/p2-0x.cpp | |
parent | 9639f3572aa9382891b03d3b8e77ebde15eb72ae (diff) | |
download | bcm5719-llvm-61422f96653f1ceb01b0dd6229a8b06ac947e2f3.tar.gz bcm5719-llvm-61422f96653f1ceb01b0dd6229a8b06ac947e2f3.zip |
For P0784R7: add support for explicit destructor calls and
pseudo-destructor calls in constant evaluation.
llvm-svn: 373122
Diffstat (limited to 'clang/test/CXX/expr/expr.const/p2-0x.cpp')
-rw-r--r-- | clang/test/CXX/expr/expr.const/p2-0x.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CXX/expr/expr.const/p2-0x.cpp b/clang/test/CXX/expr/expr.const/p2-0x.cpp index 63e30175b9f..e84753759c9 100644 --- a/clang/test/CXX/expr/expr.const/p2-0x.cpp +++ b/clang/test/CXX/expr/expr.const/p2-0x.cpp @@ -424,7 +424,7 @@ namespace PseudoDtor { int k; typedef int I; struct T { - int n : (k.~I(), 0); // expected-error {{constant expression}} + int n : (k.~I(), 1); // cxx11-warning {{constant expression}} cxx11-note {{pseudo-destructor}} }; } |