summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/constant-expression-cxx11.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2018-09-13 22:47:33 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2018-09-13 22:47:33 +0000
commit128719c4fe7c3bc1f4beccb82a8636c375033f5a (patch)
tree96f1e1cb7261af36a66b840f613882def8912dfe /clang/test/SemaCXX/constant-expression-cxx11.cpp
parent11ca38f4212646e0998ecc10db227df8ce1e6348 (diff)
downloadbcm5719-llvm-128719c4fe7c3bc1f4beccb82a8636c375033f5a.tar.gz
bcm5719-llvm-128719c4fe7c3bc1f4beccb82a8636c375033f5a.zip
Fix crash on call to __builtin_memcpy with a null pointer to an
incomplete type. Also improve the diagnostics for similar situations. llvm-svn: 342192
Diffstat (limited to 'clang/test/SemaCXX/constant-expression-cxx11.cpp')
-rw-r--r--clang/test/SemaCXX/constant-expression-cxx11.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/constant-expression-cxx11.cpp b/clang/test/SemaCXX/constant-expression-cxx11.cpp
index c9bfd846415..578a057104a 100644
--- a/clang/test/SemaCXX/constant-expression-cxx11.cpp
+++ b/clang/test/SemaCXX/constant-expression-cxx11.cpp
@@ -253,7 +253,7 @@ namespace FunctionPointers {
static_assert(1 + Apply(Select(4), 5) + Apply(Select(3), 7) == 42, "");
- constexpr int Invalid = Apply(Select(0), 0); // expected-error {{must be initialized by a constant expression}} expected-note {{in call to 'Apply(0, 0)'}}
+ constexpr int Invalid = Apply(Select(0), 0); // expected-error {{must be initialized by a constant expression}} expected-note {{in call to 'Apply(nullptr, 0)'}}
}
OpenPOWER on IntegriCloud